05.12.2014, 09:24
Help me please error ;(
________
PHP код:
new Flood_ip[MAX_PLAYERS][16], Flood_time[MAX_PLAYERS];
PHP код:
public OnIncomingConnection(playerid, ip_address[], port)
{
if(!strcmp(ip_address, Flood_ip[playerid], true, 16))
{
if(GetTickCount() - Flood_time[playerid] < 1000)
{
BlockIpAddress(ip_address, 60 * 1000);
}
}
Flood_time[playerid] = GetTickCount();
Flood_ip[playerid] = ip_address;
return 1;
}
PHP код:
Flood_ip[playerid] = ip_address; to: error 047: array sizes do not match, or destination array is too small