Help Please About Ip
#2

pawn Код:
forward CheckDuplicateIp();
public CheckDuplicateIp()
{
    new ip[16];
    new count[32];
    new string[256];
    for(new i = 0; i<MAX_PLAYERS;i++)
    {
        GetPlayerIp(i, ip, 16);
        count[ip]++; // ERROR
        if(count[ip] >= 5) // ERROR
        {
            format(string,sizeof(string),"banip %s",ip);
            SendRconCommand(string);
            SendRconCommand("reloadbans");
        }
    }
    return 1;
}
it show error

pawn Код:
error 033: array must be indexed (variable "ip")
Reply


Messages In This Thread
Help Please About Ip - by xinix000 - 07.01.2012, 13:56
Re: Help Please About Ip - by xinix000 - 07.01.2012, 15:08
Re: Help Please About Ip - by Psymetrix - 07.01.2012, 15:32
Re: Help Please About Ip - by xinix000 - 07.01.2012, 15:38

Forum Jump:


Users browsing this thread: 1 Guest(s)