#pls help

3 messages · Page 1 of 1 (latest)

wind whale
#

i am making a clicker game and i am trying to make it so once a number gets to 1 trillion or above, the cash number will contract to "1T" but instead i get just a normal number, uncontracted

#

here is my code:

if money > 999999999
{
var e = 1
var money2 = string_concat(money / 1000000000, "T")
var a = money2
var xpos = 64
var ypos = 36
var xs = 8
var ys = 8
}
if money > 9999
{
var a = money
var xpos = 64
var ypos = 72
var xs = 4
var ys = 4
}
else
{
var a = money
var xpos = 64
var ypos = 36
var xs = 8
var ys = 8
}
draw_text_transformed(xpos, ypos, a, xs, ys, 0)

draw_text_transformed(64, 0, "moneys:", 4, 4, 0)

#

(inside draw GUI event)