SA-MP Forums Archive
Sscanf option problem - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Sscanf option problem (/showthread.php?tid=603494)



Sscanf option problem - jamal1992 - 24.03.2016

Hi guys, i have "SSCANF_Option(MATCH_NAME_PARTIAL, 1);" in callback OnPlayerCommandReceived and sometimes getting wrong player when use string(part of name) even if write all player name. If use playerid is no problem just when use string(part of name). What can i do ?


Re: Sscanf option problem - AndySedeyn - 24.03.2016

I remember the u specifier being bugged in earlier versions. Update your sscanf. If you don't want to update and you exclude NPCs from the commands then you can use the r specifier.