valstr HUGE BUG - 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: valstr HUGE BUG (
/showthread.php?tid=131121)
valstr HUGE BUG -
UsaBoy91 - 01.03.2010
Ok guys , valstr is very bugged
I tryed this
pawn Code:
valstr(dgroup,1400000000); // 1.400.000.000 ( 1 billion and 400 milions )
printf("%s",dgroup);
Ok , i run the program and it show corectly
but if i put a val more than 1.500.000.000 and little than 1.900.000.000, will do this
pawn Code:
valstr(dgroup,1500000000); // 1.500.000.000 ( 1 billion and 500 milions )
printf("%s",dgroup);
it shows: 0000001500000000
And at least , if i put a val more than 1.900.000.000 , the program is freeze , and my CPU goes to 100%.
Re: valstr HUGE BUG -
UsaBoy91 - 01.03.2010
after more tests , the most and good value is: 1.409.999.999
Re: valstr HUGE BUG -
MadeMan - 01.03.2010
Are you really using values that big?
Re: valstr HUGE BUG -
UsaBoy91 - 01.03.2010
of course , for bank account , money cash etc.
Re: valstr HUGE BUG -
Jefff - 01.03.2010
Use strcat and then strval :P