[Help]4 Errors, Warn command.
#4

You have used it many times. Try this
pawn Код:
dcmd_warn(playerid,params[]) {
    if(PlayerInfo[playerid][pAdmin] >= 1) {
        new Index2, tmp1 = strtok(params, Index2), tmp2 = strtok(params, Index2);
        if(!strlen(tmp) || !strlen(tmp2)) return SendClientMessage(playerid, COLOR_RED, "USAGE: /warn [playerid] [reason]");
        new warned = strval(tmp), str[128];
        new sendername[MAX_PLAYER_NAME];
        new giveplayer[MAX_PLAYER_NAME];
    //  if(PlayerInfo[warned][Level] == ServerInfo[MaxAdminLevel] && PlayerInfo[playerid][Level] != ServerInfo[MaxAdminLevel]) return SendClientMessage(playerid,red,"ERROR: You cannot use this command on this admin");
Reply


Messages In This Thread
[Help]4 Errors, Warn command. - by vannesenn - 18.01.2012, 12:03
Re: [Help]4 Errors, Warn command. - by Konstantinos - 18.01.2012, 12:06
Re: [Help]4 Errors, Warn command. - by vannesenn - 18.01.2012, 12:18
Re: [Help]4 Errors, Warn command. - by Konstantinos - 18.01.2012, 12:24
Re: [Help]4 Errors, Warn command. - by vannesenn - 18.01.2012, 12:27
Re: [Help]4 Errors, Warn command. - by thimo - 18.01.2012, 12:37
Re: [Help]4 Errors, Warn command. - by vannesenn - 18.01.2012, 12:45
Re: [Help]4 Errors, Warn command. - by thimo - 18.01.2012, 12:59
Re: [Help]4 Errors, Warn command. - by vannesenn - 18.01.2012, 13:38
Re: [Help]4 Errors, Warn command. - by niyaz - 20.03.2012, 20:08

Forum Jump:


Users browsing this thread: 7 Guest(s)