24.05.2015, 01:57
This:
Or:
Will work, yours won't. You can't do this "|| 1 || 2 || 3", you have to add the full condition.
pawn Код:
switch(playerOnline)
{
case 2..8:
{
switch(GetTeamPlayersAlive(TEAM_RED))
{
case 0..3:
{
TeamBalance();
}
}
}
}
pawn Код:
if(playerOnline >= 2 && playerOnline <= 8)
{
if(GetTeamPlayersAlive(TEAM_RED) >= 0 && GetTeamPlayersAlive(TEAM_RED) <= 3)
{
TeamBalance();
}
}