SA-MP Forums Archive
The '2147483647' limit. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: The '2147483647' limit. (/showthread.php?tid=217439)



The '2147483647' limit. - On_Top_Non_Stop - 27.01.2011

Hello. I'm trying to pass the 2147483647 limit on variables by using two variables.

One variable for an amount from 0-999 and another for the rest.


If your wondering why I need such high numbers its basically all the players money stats into one stat.


I need a way of doing it so i can format and display it to the player like so

pawn Код:
format(string, sizeof(string)"bla bla bla a total of $%d%d",thousands, hundreds);
So.. what's the best way to go about this problem without using bits?

Cheerse.


Re: The '2147483647' limit. - Gabe - 28.01.2011

Could you try using a long or a double?


Re: The '2147483647' limit. - 1337connor - 28.01.2011

There was a include.. that formats numbers..