SA-MP Forums Archive
sscanf params doubt - 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 params doubt (/showthread.php?tid=617980)



sscanf params doubt - Gotham - 29.09.2016

So, Hey guys!

I have a doubt on sscanf params , when I put "u" as the param it will only look into the ID or Full name(I think).
What if I wanted only Part of a name?Thanks in advance


Re: sscanf params doubt - Ronaldo1234 - 29.09.2016

"u" works for both ID and Name


Re: sscanf params doubt - BiosMarcel - 29.09.2016

if you only want a part of the name us s and check if there are similiar names


Re: sscanf params doubt - Konstantinos - 29.09.2016

Both "r" (players only) and "u" (players + NPCs) specifiers search for ID or part of the name given.


Re: sscanf params doubt - Vince - 29.09.2016

Both "u" and "r" only match from the beginning, I believe. But there is an option to enable partial name checks. Check the topic/documentation.


Re: sscanf params doubt - Gotham - 29.09.2016

thanks to all!I didnt type from the first , that might be it.