07.01.2012, 15:08
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;
}
pawn Код:
error 033: array must be indexed (variable "ip")