30.08.2010, 07:59
i have this command
i get one error
but id is defined :/:/:/:/:/:/
pawn Код:
dcmd_ban(playerid, params[])
{
if(GetPVarInt(playerid, "Admin") >= 1) //vede se и + di lvl 1
{
new id, tmp[128],string[128];
if(sscanf(params, "uz", id, tmp)) return SendClientMessage(playerid, RED, "[AIUTO]: /BAN [ID / NOME] [MOTIVO]");
if(!IsPlayerConnected(id) || id == playerid) return SendClientMessage(playerid, RED, "Questo player и offline o sei tu");
format(string, sizeof string, "Player: %s и stato bannato da %s [Morivo :%s]",Name(id),AdminName(playerid),tmp);
SendClientMessageToAll(YELLOW, string), print(string),
format(string,sizeof(string),"Bannato da %s",AdminName(playerid));
SendCommandMsg(playerid,"ban");
}
return BanEx(id,tmp);
}
pawn Код:
error 017: undefined symbol "id"