[Include] FloodControl.inc ─ Easily block flood bots
#41

re-upload link please :S
Reply
#42

I have a problem,i put this include in my gamemode and add the
PHP код:
#include <floodcontrol> 
but get this error
Код:
C:\Users\Korisnik\Desktop\Yugoslavia Trucking v.0.3.7\gamemodes\YT.pwn(91) : fatal error 100: cannot read from file: "floodcontrol"

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Reply
#43

@RyDeR`:

Well, actually, i wrote a faster function for IpToInt, look at this you don't need loops with a little math:

PHP код:
static stock IpToInt2(const ip[])
{
    new 
b=(ip[2]=='.')?3:4,c=(ip[b+1]=='.')?(b+2):(b+3),d=(ip[c+1]=='.')?(c+2):(c+3);
    static 
Byte[1 char];
    return 
Byte{0} = strval(ip[0]),
           
Byte{1} = strval(ip[b]),
           
Byte{2} = strval(ip[c]),
           
Byte{3} = strval(ip[d]),
           
Byte;

Greekz
Reply
#44

link is not working
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)