Problem With loop!
#2

pawn Код:
for(new i=0; i < MAX_PLAYERS; i++) //Start the loop looping through all players
{
    if(i != playerid) //Make sure the 'i' variable is NOT your playerid
    {
        //Do stuff here, your playerid will NOT be used between these brackets
   
   
    }
}
This should do the trick I guess, you can also use BroZeus' code. The code I wrote is not 'the' way to do it, it's just another way of doing it.
Reply


Messages In This Thread
Problem With loop! - by danish007 - 30.06.2014, 22:23
Re: Problem With loop! - by Jstylezzz - 01.07.2014, 05:31
Re: Problem With loop! - by BroZeus - 01.07.2014, 05:35
Re: Problem With loop! - by danish007 - 01.07.2014, 06:36
Re: Problem With loop! - by danish007 - 01.07.2014, 06:53
Re: Problem With loop! - by danish007 - 01.07.2014, 09:30
Re: Problem With loop! - by AroseKhanNiazi - 01.07.2014, 09:40
Re: Problem With loop! - by danish007 - 01.07.2014, 09:47
Re: Problem With loop! - by AroseKhanNiazi - 01.07.2014, 09:55
Re: Problem With loop! - by BlackSirrah239 - 01.07.2014, 09:55

Forum Jump:


Users browsing this thread: 1 Guest(s)