30.07.2013, 22:14
Galera coloquei esse anti fake kill:
E deu esses erros:
As linhas sгo essas:
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;
}
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
pawn Код:
new LastDeath[ MAX_PLAYERS ];
new DeathSpam[ MAX_PLAYERS char ];