31.08.2013, 08:08
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.
prints
After that the server becomes not enterable, and this appears:
I had to avoid this issue by using something like
which works fine.
Best Regards
~ BigETI
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");
Код:
Debug 1
Код:
Incoming connection: <IP>:<port> Kicking <IP> because they didn't logon to the game.
pawn Код:
format(my_string, sizeof my_string, "%d", 2080374655);
Best Regards
~ BigETI