21.03.2009, 17:34
You Most To Do every commands the var commands like tmp!
you cannot do this Globlay!
and i suggest you to do your Command like this:
Hope I Help you! =]
you cannot do this Globlay!
and i suggest you to do your Command like this:
Код:
if(strcmp(cmd, "/Kick", true) == 0) { new tmp[256]; tmp = strtok(cmdtext, idx); if(!strlen(tmp)) return SendClientMessage(playerid,COLOR_RED,"Usage: /Kick [playerid]!"); new id; id = strval(tmp); if(!IsPlayerConnected(id)) return SendClientMessage(playerid,COLOR_RED,"Invaild id!"); Kick(id); return 1; }