error in pawno
#7

Quote:
Originally Posted by JuanStone
Посмотреть сообщение
pawn Код:
#define <zcmd>
#define <sscaf2>

command(banear, playerid, params[])
{
    if(EstaDuty[playerid] == false)
    {
        if(PI[playerid][Staff] == 2)
        {
            if(sscanf(params, "u", params[0])) return SendClientMessage(playerid, COLOR_BLANCO, "administrador usa /banear [playerid/nombre].");
            if(IsPlayerConnected(params[0])&& params[0] != INVALID_PLAYER_ID)
            {
                Mensaje(params[0], COLOR_BLANCO, "Te han baneado.");
                Mensaje(playerid, COLOR_BLANCO, "Lo has baneado.");
                Ban(params[0]);
            }
            else
            {
                SendClientMessage(playerid, -1, "Player no conectado.");
            }
        }
        else
        {
            SendClientMessage(playerid, -1, "No eres administrador nivel 2");
        }
    }
    else
    {
        SendClientMessage(playerid, -1, "Estas en duty.");
    }
    return true;
}
I think I lack the defined zcmd because I put it and I get the same error

C:\Users\Usuario\Desktop\NewParadise\gamemodes\NPR P.pwn(9314) : error 029: invalid expression, assumed zero
C:\Users\Usuario\Desktop\NewParadise\gamemodes\NPR P.pwn(9314) : error 017: undefined symbol "c_banear"
C:\Users\Usuario\Desktop\NewParadise\gamemodes\NPR P.pwn(9314) : error 029: invalid expression, assumed zero
C:\Users\Usuario\Desktop\NewParadise\gamemodes\NPR P.pwn(9314) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


4 Errors.
Reply


Messages In This Thread
error in pawno - by Lanzik - 07.12.2014, 15:52
Re: error in pawno - by Lanzik - 07.12.2014, 16:16
Re: error in pawno - by Copfan5 - 07.12.2014, 18:02
Re: error in pawno - by JuanStone - 07.12.2014, 18:10
Re: error in pawno - by Glossy42O - 07.12.2014, 18:16
Re: error in pawno - by Lanzik - 08.12.2014, 07:42
Re: error in pawno - by Lanzik - 08.12.2014, 07:45
Re: error in pawno - by Lanzik - 08.12.2014, 07:47
Re: error in pawno - by BroZeus - 08.12.2014, 08:47
Re: error in pawno - by Doller - 08.12.2014, 08:56

Forum Jump:


Users browsing this thread: 3 Guest(s)