29.12.2012, 12:04
Hey,
I am real tired about this sh*t!, I have created a lot of commands with ZCMD, without any errors or anything. But it will never work ingame!!!! All time when I type ingame a command, I will see the message: SERVER:UNKNOWN COMMAND.
It makes me tired, its anoying, do anyone know why it never works by me?
Here are some examples of my command..
Hope anyone can give me more info about this,..
Thanks
I am real tired about this sh*t!, I have created a lot of commands with ZCMD, without any errors or anything. But it will never work ingame!!!! All time when I type ingame a command, I will see the message: SERVER:UNKNOWN COMMAND.
It makes me tired, its anoying, do anyone know why it never works by me?
Here are some examples of my command..
PHP код:
CMD:disarm(playerid, params[])
{
new str[128], id;
if(PlayerAcc[playerid][Log] == 0) return SendClientMessage(playerid, COLOR_ORANGE, "You are not logged in, please login first.");
if(PlayerAcc[playerid][Admin] >= 2)
{
if(sscanf(params, "u", id)) return SendClientMessage(playerid, COLOR_ORANGE, "You must be type /disarm <playerid>");
if(id == INVALID_PLAYER_ID) return ErrorMessages(playerid, 2);
if(PlayerAcc[playerid][Admin] < PlayerAcc[id][Admin]) return ErrorMessages(playerid, 3);
ResetPlayerWeapons(id);
format(str, sizeof(str), "You have succesfully disarmed %s(ID:%d)", GetName(id), id);
SendClientMessage(playerid, COLOR_YELLOW, str);
format(str, sizeof(str), "Admin %s(ID:%d) disarmed you.", GetName(playerid), playerid);
SendClientMessage(id, COLOR_RED, str);
}
else return ErrorMessages(playerid, 6);
return 1;
}
Thanks