Unsearchable Code
#1

pawn Код:
new string[128];
    new Nome[MAX_PLAYER_NAME];
    GetPlayerName(playerid, Nome, sizeof(Nome));
    for(new divulguer = 0; divulguer < IPS; divulguer++)
    {
        if(strfind(text, FaixaIPs[divulguer], true) != -1)
        {
            format(string, sizeof(string), "[dr_AntiCheat] O Player %s foi banido pelo servidor por Divulgar outros Servidores.", Nome);
            SendClientMessageToAll(VermelhoClaro, string);
            Ban(playerid);
            return 0;
        }

    }
    return 1;
}
pawn Код:
C:\Users\Alex\Desktop\Otros\CodSamp\codsamp_aw\gamemodes\COD5.pwn(5491) : warning 225: unreachable code
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase

Header size:           9780 bytes
Code size:           542580 bytes
Data size:          2220688 bytes
Stack/heap size:      16384 bytes; estimated max. usage=5283 cells (21132 bytes)
Total requirements: 2789432 bytes

1 Warnings.
Reply
#2

use break; instead of return 0;
Reply
#3

Im getting the same problem.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)