[Ajuda] Erros Simples
#1

Galera coloquei esse anti fake kill:
pawn Код:
new LastDeath[ MAX_PLAYERS ];
new DeathSpam[ MAX_PLAYERS char ];

public OnPlayerDeath(playerid, killerid, reason)
{
    new time = gettime( );
    switch( time - LastDeath[ playerid ] )
    {
        case 0 .. 3:
        {
            DeathSpam{ playerid }++;
            if( DeathSpam{ playerid } == 3 )
            {
                BanEx( playerid, "Fake-kill" );
                return 1;
            }
        }
        default: DeathSpam{ playerid } = 0;
    }
    LastDeath[ playerid ] = time;
    return 1;
}
E deu esses erros:
pawn Код:
C:\Users\Analia\Desktop\BmcV2.0\gamemodes\BRT.pwn(18) : error 017: undefined symbol "MAX_PLAYERS"
C:\Users\Analia\Desktop\BmcV2.0\gamemodes\BRT.pwn(18) : error 009: invalid array size (negative, zero or out of bounds)
C:\Users\Analia\Desktop\BmcV2.0\gamemodes\BRT.pwn(19) : error 017: undefined symbol "MAX_PLAYERS"
C:\Users\Analia\Desktop\BmcV2.0\gamemodes\BRT.pwn(19) : error 008: must be a constant expression; assumed zero
C:\Users\Analia\Desktop\BmcV2.0\gamemodes\BRT.pwn(19) : error 009: invalid array size (negative, zero or out of bounds)
C:\Users\Analia\Desktop\BmcV2.0\gamemodes\BRT.pwn(19) : fatal error 107: too many error messages on one line
As linhas sгo essas:
pawn Код:
new LastDeath[ MAX_PLAYERS ];
new DeathSpam[ MAX_PLAYERS char ];
Reply


Messages In This Thread
Erros Simples - by ThiagoMK - 30.07.2013, 22:14
Re: Erros Simples - by Mteck - 30.07.2013, 22:18
Re : Re: Erros Simples - by ThiagoMK - 30.07.2013, 22:23
Re: Erros Simples - by Mteck - 30.07.2013, 22:25
Re : Re: Erros Simples - by ThiagoMK - 30.07.2013, 22:33
Re: Erros Simples - by FenixBorn - 30.07.2013, 22:36
Re : Re: Erros Simples - by ThiagoMK - 30.07.2013, 22:53

Forum Jump:


Users browsing this thread: 1 Guest(s)