12.05.2011, 12:10
Next time use pawn tags. Well, ZCMD is quite better than strcmp or DCMD.
Usage:
Usage:
pawn Код:
//This shouldn't be under ANY callbacks.
COMMAND:myfirstzcmd(playerid) {
SendClientMessage(playerid,0xFFFFFF,"HEY. FIRST ZCMD COMMAND. MUHAAHA");
return 1;
}
//These commands should return a value. those 2 values (playerid,params[]) can be removed, if you don't need then at all. playerid = the player's ID who has performed this cmd, params[] = whats after the cmd like /lol [this is here] - params[] can be stored in variables by using sscanf()