SA-MP Forums Archive
Unsearchable Code - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Unsearchable Code (/showthread.php?tid=273444)



Unsearchable Code - Alex_Obando - 01.08.2011

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.



Re: Unsearchable Code - Macluawn - 01.08.2011

use break; instead of return 0;


Respuesta: Unsearchable Code - Alex_Obando - 01.08.2011

Im getting the same problem.