Help with countdown problem
#1

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
Reply
#2

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

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
Reply
#4

...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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)