SA-MP Forums Archive
Sscanf question ! - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Sscanf question ! (/showthread.php?tid=221502)



Sscanf question ! - admantis - 05.02.2011

I need to know if there is any difference between
pawn Код:
if(sscanf(params, "r", id, params)) return SendClientMessage(playerid,RED,"USAGE: akill [id]");
if(sscanf(params, "u", id, params)) return SendClientMessage(playerid,RED,"USAGE: akill [id]");
if(sscanf(params, "i", id, params)) return SendClientMessage(playerid,RED,"USAGE: akill [id]");
Thanks


Re: Sscanf question ! - Riddick94 - 05.02.2011

Eh.. http://forum.sa-mp.com/showthread.ph...ghlight=sscanf


Re: Sscanf question ! - admantis - 05.02.2011

I've seen them.. but these 3 operators work with player ids? what is recommended to use more?


Re: Sscanf question ! - YungGee - 05.02.2011

"u" is best for id/names


Re: Sscanf question ! - admantis - 05.02.2011

I will switch than, thanks


Re: Sscanf question ! - MadeMan - 05.02.2011

i is for id only, but with u you can use name too.