[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
#2

pawn Код:
#define MAX_PLAYERS  100    // Geralmente eu coloco sempre 50 amais.
Reply
#3

Quote:
Originally Posted by Mteck
Посмотреть сообщение
pawn Код:
#define MAX_PLAYERS  100    // Geralmente eu coloco sempre 50 amais.
Os erros continuam ''Richard''
Reply
#4

Os erros mudaram?

@OFF Porquк todo mundo me chama desse "TAL" de Richard?
Reply
#5

Quote:
Originally Posted by Mteck
Посмотреть сообщение
Os erros mudaram?

@OFF Porquк todo mundo me chama desse "TAL" de Richard?
Os erros continuam igual

@OFF Eu posso chamar vocк de skol tbm
Reply
#6

Colocou ele dentro do public OnPlayerDeath??
Reply
#7

Quote:
Originally Posted by FenixBorn
Посмотреть сообщение
Colocou ele dentro do public OnPlayerDeath??
Coloquei..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)