19.10.2011, 13:34
Hey,
how come i get an error with this ? i don't get this error on my other script so im wondering why and what i have done cos i cant work it out
how come i get an error with this ? i don't get this error on my other script so im wondering why and what i have done cos i cant work it out
pawn Код:
CMD:ban(playerid,params[])
{
new
pID,
reason[70]
;
if(PlayerInfo[playerid][pAdmin] < 1) return SendClientMessage(playerid,COLOR_YELLOW,"You Must Be An Admin To Use This Command");
else if(IsPlayerConnected(pID)) SendClientMessage(playerid,COLOR_YELLOW,"This Player Is Not Connected!");
else if(pID == playerid) = SendClientMessage(playerid,COLOR_YELLOW,"You Cannot Ban Yourself!");
else if(sscanf(params, "uS(No Reason)[40]", pID, reason)) SendClientMessage(playerid,COLOR_YELLOW, "[USAGE]: /ban playerid reason");
else
{
BanEx(pID,reason);
Kick(pID);
PlayerInfo[pID][pBanned] = 1;
}
return 1;
}