04.07.2012, 05:11
What you don't understand is that variables in PAWN are 32-bits.
2,147,483,647 is the maximum value for a 32-bit signed integer (signed meaning they can take negative numbers also).
There's no way around this, unless you use a string - store the 'billions' in one variable and the rest in another, but you'll NEVER be able to convert it to an integer.
Sooooooo instead of
cash = 2147483647
you'll have to do
cash_billions = 2
cash = 147483647
or something.
2,147,483,647 is the maximum value for a 32-bit signed integer (signed meaning they can take negative numbers also).
There's no way around this, unless you use a string - store the 'billions' in one variable and the rest in another, but you'll NEVER be able to convert it to an integer.
Sooooooo instead of
cash = 2147483647
you'll have to do
cash_billions = 2
cash = 147483647
or something.