sscanf
#1

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?
Reply
#2

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

Use CMDTEXT, since params is not used in strcmp.
Reply
#3

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

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]");
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)