[Ajuda] Ajuda Com Anti-Flood
#1

Ajuda Com Anti-Flood
Quando Eu compilo Da Erro

pawn Код:
//Isso Aqui Ta No Topo Do GM
#define TimerFlood   3000
#define AlertFlood   4
#define ColorFlood   0x24B1DBAA
//Isso Aqui Ta No Topo Do GM
new FloodTimer[MAX_PLAYERS];
new FloodAlert[MAX_PLAYERS];


public OnPlayerText(playerid, text[])
{
    new string[126];
    if(GetTickCount() > FloodTimer[playerid])
    {
        FloodAlert[playerid] = 0;
    }
    FloodTimer[playerid] = GetTickCount() + TimerFlood;
    FloodAlert[playerid] ++;
    if(FloodAlert[playerid] > 1 && FloodAlert[playerid] < AlertFlood-1)
    {
    }
    else if(FloodAlert[playerid] == AlertFlood-1)
    {
    }
    else if(FloodAlert[playerid] == AlertFlood)
    {
        new pname[MAX_PLAYER_NAME]; GetPlayerName(playerid, pname, sizeof(pname));
        format(string, sizeof(string), "-| %s foi calado automaticamente por floodar no chat |-.", pname);
        SendClientMessageToAll(VERMELHO, string);
        APlayerData[playerid][Muted] = true;
        return 0;
    }
    if (APlayerData[playerid][Muted] == true)
    {
        SendClientMessage(playerid, VERMELHO, "Vocк estб mudo!");
        return 0;
    }
format(string,sizeof(string),"{FFFF00}(ID: %d) %s",playerid,text);
SendPlayerMessageToAll(playerid,string);
return 0;
}

pawn Код:
C:\Users\Jhonatan\Desktop\Brasil Truckers™  - v 1.0\gamemodes\BTF.pwn(16) : error 017: undefined symbol "MAX_PLAYERS"
C:\Users\Jhonatan\Desktop\Brasil Truckers™  - v 1.0\gamemodes\BTF.pwn(16) : error 009: invalid array size (negative, zero or out of bounds)
C:\Users\Jhonatan\Desktop\Brasil Truckers™  - v 1.0\gamemodes\BTF.pwn(17) : error 017: undefined symbol "MAX_PLAYERS"
C:\Users\Jhonatan\Desktop\Brasil Truckers™  - v 1.0\gamemodes\BTF.pwn(17) : error 009: invalid array size (negative, zero or out of bounds)
Reply


Messages In This Thread
Ajuda Com Anti-Flood - by Lendario - 28.06.2013, 01:10
Re: Ajuda Com Anti-Flood - by Krisky_ - 28.06.2013, 01:28
Re: Ajuda Com Anti-Flood - by Lendario - 28.06.2013, 01:29
Re: Ajuda Com Anti-Flood - by feliphemort - 28.06.2013, 01:58
Re: Ajuda Com Anti-Flood - by Lendario - 28.06.2013, 02:29

Forum Jump:


Users browsing this thread: 1 Guest(s)