Looping
#2

pawn Код:
for( new i = 0; i < MAX_PLAYERS; i++ )
{
    if( !IsPlayerConnected( i ) || /* !IsCop( i ) .. or whaterver you're using to check if they're not cops */ ) continue;
    // send the message
}
https://sampwiki.blast.hk/wiki/Loops
https://sampwiki.blast.hk/wiki/Control_Structures#Loops
Reply


Messages In This Thread
Looping - by AnonScripter - 05.10.2013, 17:46
Re: Looping - by Konstantinos - 05.10.2013, 17:49
Re: Looping - by AnonScripter - 05.10.2013, 18:34
Re: Looping - by Konstantinos - 05.10.2013, 18:59
Re: Looping - by TomatoRage - 05.10.2013, 23:49
Re: Looping - by DanishHaq - 05.10.2013, 23:58
Re: Looping - by AnonScripter - 07.10.2013, 21:01

Forum Jump:


Users browsing this thread: 3 Guest(s)