Loop trough all players except one
#2

Small example,
pawn Код:
new
    exeption = someplayerid;// you would need to store the ignored players id in a var.

for(new i; i < MAX_PLAYERS; i++)//im not advising using this type of loop you should look at foreach.
{
    if(exeption == i)continue;
    else
    {
        //do stuff
    }
}
Reply


Messages In This Thread
Loop trough all players except one - by BlackWolf120 - 18.01.2011, 14:16
Re: Loop trough all players except one - by iggy1 - 18.01.2011, 14:21
Re: Loop trough all players except one - by Patrik356b - 18.01.2011, 14:23
Re: Loop trough all players except one - by BlackWolf120 - 18.01.2011, 14:29

Forum Jump:


Users browsing this thread: 1 Guest(s)