whats this called?
#2

pawn Код:
new count = 0;

for(new i; i<MAX_PLAYERS; i++)
{
    if(IsPlayerConnected(i))
    {
        if(class[i] != 2) // You can't have an else if statement on it's own, or an else statement for that matter
        {
            //blah        
        }
        else count++; // You could do an else here, after a previous if statement, counting people in team 2
    }
}

// Now if count = 0 nobody is in team 2
Hope that helps.
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)