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;
}
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
new LastDeath[ MAX_PLAYERS ];
new DeathSpam[ MAX_PLAYERS char ];
#define MAX_PLAYERS 100 // Geralmente eu coloco sempre 50 amais.
pawn Код:
|
Os erros mudaram?
@OFF Porquк todo mundo me chama desse "TAL" de Richard? |