Learning Sscanf - 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: Learning Sscanf (
/showthread.php?tid=433726)
Learning Sscanf -
RandomDude - 28.04.2013
pawn Код:
if (sscanf(params, "u", id)) SendClientMessage(playerid, 0xFF0000AA, "Usage: \"/heal <playerid>\"");
I was learning sscanf is it ment to be "u" or "ui" because is the playerid an interger?
Re: Learning Sscanf -
RVRP - 28.04.2013
u is the playerid.
Taken from:
https://sampwiki.blast.hk/wiki/Fast_Commands
Re: Learning Sscanf -
RandomDude - 28.04.2013
Oh okay emm so the "i" is the interger for amounts... okay thanks.
Re: Learning Sscanf -
RandomDude - 28.04.2013
Quote:
Originally Posted by ******
Hmm, that page should really be updated as it doesn't have string lengths.
|
Now thats what I'm stuck on the lengths argh yeah someone should update it