Unlogical problem with sscanf (i guess) ...
#2

First of all, put your sscanf line in a if statement, sscanf returns false when it worked (when all values have been parsed correctly). That way, you can give the player a message, saying something wen't wrong and he has to relog. I'm about 99 percent sure it's your script having a flaw, however this solution does not eliminate it, it'll however make sure your server will not crash. (Unless something is really wrong, and the values actually do get parsed correctly).

If you want to debug more, just print everything out, as soon as you see that it crashes, compare it with a time that it did go right, see what is the difference, that would help you pin point exactly what wen't wrong.

(Small thing, max name size is 24, you have it specified on 25, not that it would cause a problem, just thought I'd mention it).
Reply


Messages In This Thread
Unlogical problem with sscanf (i guess) ... - by Danny - 23.10.2011, 12:48
Re: Unlogical problem with sscanf (i guess) ... - by playbox12 - 23.10.2011, 12:53

Forum Jump:


Users browsing this thread: 1 Guest(s)