#How To Fix?

20 messages · Page 1 of 1 (latest)

acoustic temple
#

This

#

When I Use /da

#

It Doesn't Add Amount Like 4953+9519=14472 Instead It Add As 49539519

#

How Do I Fix?

regal lion
#

String + string doesn't do math, it just puts them together

acoustic temple
#
const amount = parseInt(Math.floor(Math.random() * 8000) + 
2000)

await db.add(`money_${user.id}`, `${parseInt(amount)}`)

I Did This But Still Same

acoustic temple
regal lion
acoustic temple
#

9.0.8

regal lion
#

Oh, idk why I didn't see it sooner that was my bad

#

So just so you know. Doing `${}` is bad

#

That makes a string

#

So even though you parse it. You convert it back to a string

acoustic temple
#

Ok Let Me Try

#

Thanks Worked Now

#

:)