SA-MP Forums Archive
help with sscanf plzz - 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: help with sscanf plzz (/showthread.php?tid=220764)



help with sscanf plzz - YungGee - 04.02.2011

will this work?

if(sscanf(params, "rn", id, level)) return SendClientMessage(playerid,RED,"USAGE: /level [id] [level]");

is the rn the wrong way? and i useing the wrong symbols :S

please just help


Re: help with sscanf plzz - JamesC - 04.02.2011

You need to use u for player name / id and d or i for an integer. So ud or ui