12.03.2013, 19:00
Hi,
Ex: i store in variable that values:
78.4564
79.9.5
9.549
79.9.5
3.54.9
79.9.5
3.54.9
I want to do cikle or what threw that variables, and check is there more than 2 variables same than something happin...
I want to do IP protection, from mass ip. Just i want save player ip in variable, and then check how much there is ips in that variables.
new STOREIPADDRES[ 1000 ][ 20 ];
new GetPlayerIpEx[ MAX_PLAYERS ][ 25 ];
GetPlayerIp( playerid, GetPlayerIpEx[ playerid ], MAX_PLAYER_NAME );
Ex: i store in variable that values:
78.4564
79.9.5
9.549
79.9.5
3.54.9
79.9.5
3.54.9
I want to do cikle or what threw that variables, and check is there more than 2 variables same than something happin...
I want to do IP protection, from mass ip. Just i want save player ip in variable, and then check how much there is ips in that variables.
new STOREIPADDRES[ 1000 ][ 20 ];
new GetPlayerIpEx[ MAX_PLAYERS ][ 25 ];
GetPlayerIp( playerid, GetPlayerIpEx[ playerid ], MAX_PLAYER_NAME );
Код:
for( IPCIKLEX[ playerid ] = 0; IPCIKLEX[ playerid ] < 999; IPCIKLEX[ playerid ] ++ ) { if( isnull( STORESIPADDRES[ IPCIKLEX[ playerid ] ] ) ) { strmid(STORESIPADDRES[ IPCIKLEX[ playerid ] ],GetPlayerIpEx[ playerid ],0,20,20); break; } }