[HELP]Why do i get this ? [zcmd]
#1

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

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;
}
Reply


Messages In This Thread
[HELP]Why do i get this ? [zcmd] - by DaRkAnGeL[NBK] - 19.10.2011, 13:34
Re: [HELP]Why do i get this ? [zcmd] - by nilanjay - 19.10.2011, 13:36
Re: [HELP]Why do i get this ? [zcmd] - by DaRkAnGeL[NBK] - 19.10.2011, 13:37
Re: [HELP]Why do i get this ? [zcmd] - by nilanjay - 19.10.2011, 13:39
Re: [HELP]Why do i get this ? [zcmd] - by DaRkAnGeL[NBK] - 19.10.2011, 13:42
Re: [HELP]Why do i get this ? [zcmd] - by nilanjay - 19.10.2011, 13:46
Re: [HELP]Why do i get this ? [zcmd] - by DaRkAnGeL[NBK] - 19.10.2011, 13:49
Re: [HELP]Why do i get this ? [zcmd] - by nilanjay - 19.10.2011, 13:50
Re: [HELP]Why do i get this ? [zcmd] - by DaRkAnGeL[NBK] - 19.10.2011, 13:51
Re: [HELP]Why do i get this ? [zcmd] - by DaRkAnGeL[NBK] - 19.10.2011, 13:54

Forum Jump:


Users browsing this thread: 1 Guest(s)