valstr() Bug
#1

I've been struggling for days now why my script keeps hanging during runtime, and found out that the native called valstr() was hanging my whole script.
If you actually try to convert large numbers into strings using valstr(), you can hang your script.

pawn Код:
new my_string[11];
print(" Debug 1");
valstr(my_string, 2080374655); // Valid number, hangs
print(" Debug 2");
prints
Код:
 Debug 1
After that the server becomes not enterable, and this appears:
Код:
Incoming connection: <IP>:<port>
Kicking <IP> because they didn't logon to the game.
I had to avoid this issue by using something like
pawn Код:
format(my_string, sizeof my_string, "%d", 2080374655);
which works fine.

Best Regards

~ BigETI
Reply


Messages In This Thread
valstr() Bug - by BigETI - 31.08.2013, 08:08
Re: valstr() Bug - by Niko_boy - 31.08.2013, 08:21
Re: valstr() Bug - by iZN - 31.08.2013, 08:33
Re: valstr() Bug - by General Abe - 31.08.2013, 08:49
AW: valstr() Bug - by BigETI - 31.08.2013, 08:58
Re: valstr() Bug - by Misiur - 31.08.2013, 09:19

Forum Jump:


Users browsing this thread: 1 Guest(s)