04.09.2015, 22:49
Not sure if this is a bug with coding, or what.
Sometimes, my admins are noticing that sscanf is returning "no player found" while using the 'u' specifier.
I have tried it, and this seems to be happening if someone is inputting the actual name or the ID of the player. Not sure how to fix this.
I did notice that this wont happen if the 'd' specifier is used, but 'u' is better because you can type the name also.
Sometimes, my admins are noticing that sscanf is returning "no player found" while using the 'u' specifier.
Код:
if(sscanf(params, "us[30]",id,rsn)) return SendClientMessage(playerid,COLOR_RED,"Usage: /ban <playerid> <reason>");
I did notice that this wont happen if the 'd' specifier is used, but 'u' is better because you can type the name also.