SA-MP Forums Archive
Help with countdown problem - 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: Help with countdown problem (/showthread.php?tid=148340)



Help with countdown problem - ruckfules99 - 16.05.2010

I have a countdown FS and it works great for numbers less then 10


The problem is, when i type /countdown 50 it doesn't display the 2nd number in the numbers, so instead of


50, 49, 48, 47, 46, 45, etc etc It displays

0, 4, 4, 4, 4, etc etc and then when the count hits the 30's it does:

3, 3, 3, 3, 3, etc etc....

what could be the problem?


http://pastebin.com/FRpf0P7D


Re: Help with countdown problem - Babul - 16.05.2010

line 46 needs to be
Код:
new str[3];
because the termination (0x00) of the string needs 1 more byte.


Re: Help with countdown problem - ruckfules99 - 16.05.2010

Quote:
Originally Posted by Babul
line 46 needs to be
Код:
new str[3];
because the termination (0x00) of the string needs 1 more byte.
OMG NICE EYES U GOT THERE


Re: Help with countdown problem - Babul - 16.05.2010

...despite that i was able to cut air with a knife here while reading your script, the stringsize was the first place i looked at ^^
why? coz i make this sort of mistakes all the time