[Help] Simple LITTLE question.
#2

This code: ( example )
pawn Код:
for( new i; i < MAX_PLAYERS; i ++ )
{
    if( IsPlayerConnected( i ) ) Kick( i );
}
is a replacement for
pawn Код:
if( IsPlayerConnected( 0 ) ) Kick( 0 );
if( IsPlayerConnected( 1 ) ) Kick( 1 );
if( IsPlayerConnected( 2 ) ) Kick( 2 );
if( IsPlayerConnected( 3 ) ) Kick( 3 );
//etc
if( IsPlayerConnected( 499 ) ) Kick( 499 );
Reply


Messages In This Thread
[Help] Simple LITTLE question. - by moadi - 06.10.2011, 17:50
Re: [Help] Simple LITTLE question. - by IstuntmanI - 06.10.2011, 18:24
Re: [Help] Simple LITTLE question. - by moadi - 06.10.2011, 18:28
Re: [Help] Simple LITTLE question. - by System64 - 06.10.2011, 18:52
Re: [Help] Simple LITTLE question. - by [HiC]TheKiller - 06.10.2011, 19:16
Re: [Help] Simple LITTLE question. - by Kingunit - 06.10.2011, 19:27
Re: [Help] Simple LITTLE question. - by spd_sahil - 06.10.2011, 19:41
Re: [Help] Simple LITTLE question. - by MoroDan - 06.10.2011, 19:55

Forum Jump:


Users browsing this thread: 2 Guest(s)