13.02.2012, 12:32
Consertei os erros do seu cуdigo :
Espero ter ajudado .
pawn Код:
new
pIP[MAX_PLAYERS][16],
pTime[MAX_PLAYERS];
public OnPlayerConnect(playerid)
{
new
playerIP[16],
playerInteger[2];
GetPlayerIp(playerid, playerIP, 16);
playerInteger[0] = gettime() + 2;
for(new i; i < MAX_PLAYERS; ++i)
{
if(pTime[i] && !strcmp(pIP[playerid], playerIP) && pTime[i] >= playerInteger[0])
{
if(++playerInteger[1] == 3)
return BanEx(playerid, "FUCK OFF IDIOT, YOU SUCK.");
}
}
strmid(pIP[playerid], playerIP, 0, 16, sizeof(pIP[]));
return pTime[playerid] = playerInteger[0];
}
Espero ter ajudado .