16.10.2010, 22:45
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