Quote:
Originally Posted by =WoR=Varth
pawn Код:
CMD:stuff(playerid,params[]) { new otherid; if(strfind(params,"kick")) { if(sscanf(params,"'kick'd",otherid)) { printf("kick: %d", otherid); } } if(strfind(params,"ban")) { if(sscanf(params,"'ban'ds",otherid,params)) { printf("ban: %d - %s", otherid,params); } } return 1; }
|
Do you know what is strfind used for?!
https://sampwiki.blast.hk/wiki/Strfind
So if you do like, /stuff kicktrolololol it would still work.
And you can't use sscanf like that.