16.06.2011, 20:21
Before I add this,
I don't get no warnings, but after it, I get this....
What's up?
pawn Код:
CMD:kick(playerid, params[])
{
new str[128], id, reason[50], name[MAX_PLAYER_NAME];
if(gPlayerInfo[playerid][PLAYER_LEVEL] < gCommands[KICK]){
format(str, 128, "{FF3300}You must be a level %d administrator to use that command!", gCommands[KICK])
SendClientMessage(playerid, COLOR_ORANGE, str);
return 1;
}
if(sscanf(params, "ds[50]", id, reason)) return SendClientMessage(playerid, COLOR_ORANGE, "{FF3300}USAGE: /kick [playerid] [reason]");
format(str, 128, "[KICK] You have been kicked [[ %s ]]", reason);
SendClientMessage(id, 0xFF0000AA, str);
Kick(id);
GetPlayerName(id, name, MAX_PLAYER_NAME);
format(str, 128, "[KICK] %s has been kicked [[ %s ]]", name, reason);
SendClientMessageToAll(0xFF0000AA, str);
return 1;
}
Код:
new.pwn(349) : warning 203: symbol is never used: "kick"