Variables store.
#3

Код:
GetPlayerIp( playerid, GetPlayerIpEx[ playerid ], MAX_PLAYER_NAME );

   
 	for( IPCIKLEX[ playerid ] = 0; IPCIKLEX[ playerid ] < 100; IPCIKLEX[ playerid ] ++ )
 	{
 	    if( !strcmp(STORESIPADDRES[ IPCIKLEX[ playerid ] ],"no",true ) ) //Ar zaidejas namo savininkas
		{
 	    	strmid(STORESIPADDRES[ IPCIKLEX[ playerid ] ],GetPlayerIpEx[ playerid ],0,20,20);
 	    	break;
 	    }
 	}
 	for( IPCIKLEX[ playerid ] = 0; IPCIKLEX[ playerid ] < 100; IPCIKLEX[ playerid ] ++ )
 	{
 	    for( IPCIKLEX2[ playerid ] = 0; IPCIKLEX2[ playerid ] < 300; IPCIKLEX2[ playerid ] ++ )
 		{
 	    	if( !strcmp(STORESIPADDRES[ IPCIKLEX[ playerid ] ],STORESIPADDRES[ IPCIKLEX2[ playerid ] ],true ) ) //Ar zaidejas namo savininkas
			{
			    COUNTIPS[ IPCIKLEX[ playerid ] ] ++;
			}
		}
	}
 	for( IPCIKLEX[ playerid ] = 0; IPCIKLEX[ playerid ] < 100; IPCIKLEX[ playerid ] ++ )
 	{
 	    if( COUNTIPS[ IPCIKLEX[ playerid ] ] > 3 )
 	    {
 	        new BANIP[ 50 ];
 	        format(BANIP,50,"banip %s",GetPlayerIpEx[ playerid ] );
 	        SendRconCommand(BANIP);
 	    }
 	}
What bad in this code?
Reply


Messages In This Thread
Variables store. - by audriuxxx - 12.03.2013, 19:00
Re: Variables store. - by mineralo - 12.03.2013, 19:32
Re: Variables store. - by audriuxxx - 12.03.2013, 19:44

Forum Jump:


Users browsing this thread: 1 Guest(s)