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



sscanf - iBots - 04.03.2014

i am using sscanf,how can i make it in strcmp like ZCMD,i mean in zcmd they write
pawn Код:
if(sscanf(params, "d", carid)) return SendClientMessageEx(playerid, -1, "/check [carid]");
i am using strcmp ,what to write instead of params to let it work?
here is my strcmp..
pawn Код:
if(strcmp(cmd, "/check", true) == 0)
so what to write instead of params?


Re: sscanf - HK - 04.03.2014

if(sscanf(cmdtext, "d", carid)) return SendClientMessageEx(playerid, -1, "/check [carid]");

Use CMDTEXT, since params is not used in strcmp.


Re: sscanf - iBots - 04.03.2014

are you crazy?look at my strcmp command it doesnt have cmdtext in it omg,thats why i am asking for help


Re: sscanf - Misiur - 04.03.2014

sscanf doesn't equal ZCMD, and other way around. You could use strcmp, and if you have sscanf available, then
pawn Код:
if(sscanf(cmdtext[7], "d", carid)) return SendClientMessageEx(playerid, -1, "/check [carid]");