02.10.2011, 01:43
While sscanf does check the id when you use "u" it returns INVALID_PLAYER_ID.
What you need to understand is, doing an if sscanf means if it returns 1, clearly INVALID_PLAYER_ID is not 1, therefore if invalid it will not fire off, which is why you check it exclusively afterwards.
Using sscanf in that way only tells if it got the param(s) correctly or not.
What you need to understand is, doing an if sscanf means if it returns 1, clearly INVALID_PLAYER_ID is not 1, therefore if invalid it will not fire off, which is why you check it exclusively afterwards.
Using sscanf in that way only tells if it got the param(s) correctly or not.