Help with a loop. [EASY]
#9

Quote:
Originally Posted by Golimad
View Post
Code:
new count;
for(new i=0; i<MAX_PLAYERS; i++)
{
    if(!IsPlayerConnected(i)) continue;
    count++;
}
Why don't you just use this to do the count and whatever function you wanna do to the players

You are making things complicated for nothing, What you are doing is pointless

Code:
new count;
for(new i=0; i<MAX_PLAYERS; i++)
{
    if(!IsPlayerConnected(i)) continue;
    count++;
    if(something) // code
    else(something) // code 
    
}
Reply


Messages In This Thread
Help with a loop. [EASY] - by $Marco$ - 04.03.2015, 13:02
Re: Help with a loop. [EASY] - by Jimmy0wns - 04.03.2015, 13:08
Re : Re: Help with a loop. [EASY] - by $Marco$ - 04.03.2015, 13:12
Re: Help with a loop. [EASY] - by Schneider - 04.03.2015, 13:15
Re : Help with a loop. [EASY] - by Golimad - 04.03.2015, 13:17
Re : Re: Help with a loop. [EASY] - by $Marco$ - 04.03.2015, 13:18
Re : Help with a loop. [EASY] - by Golimad - 04.03.2015, 13:20
Re : Help with a loop. [EASY] - by $Marco$ - 04.03.2015, 13:22
Re : Help with a loop. [EASY] - by Golimad - 04.03.2015, 13:26
Re: Re : Help with a loop. [EASY] - by $Marco$ - 04.03.2015, 13:28

Forum Jump:


Users browsing this thread: 3 Guest(s)