whats this called?
#1

hmm i made a vaariable like class[max_players] for teams ..
ok i want to get their teams,.. now how do i find that when noone is in team 2 ? i could do it like this ..
pawn Код:
for(new i; i<MAX_PLAYERS; i++)
        {
            if(IsPlayerConnected(i))
            {
                    else if(class[i] != 2)
                {
                        //blah         
                                                   }
            }
        }
i tried taht but it didnt work .. what if i use this .. if(class[max_players] for all the players ... but that will tell me taht it is out of bounds , and what if i use if(class[499] != 2 )? will this work ?
Reply


Messages In This Thread
whats this called? - by Rocky Balboa - 16.10.2010, 22:42
Re: whats this called? - by JaTochNietDan - 16.10.2010, 22:45
Re: whats this called? - by Rocky Balboa - 16.10.2010, 23:07
Re: whats this called? - by JaTochNietDan - 16.10.2010, 23:09
Re: whats this called? - by Rocky Balboa - 24.10.2010, 20:19

Forum Jump:


Users browsing this thread: 1 Guest(s)