if(playerOnline >= 2 || 4 || 6 || 8) { if(GetTeamPlayersAlive(TEAM_RED) == 0 || 1 || 2 || 3) { TeamBalance(); } }
switch(playerOnline)
{
case 2..8:
{
switch(GetTeamPlayersAlive(TEAM_RED))
{
case 0..3:
{
TeamBalance();
}
}
}
}
if(playerOnline >= 2 && playerOnline <= 8)
{
if(GetTeamPlayersAlive(TEAM_RED) >= 0 && GetTeamPlayersAlive(TEAM_RED) <= 3)
{
TeamBalance();
}
}
if(playerOnline >= 2 && playerOnline <= 8) { if(GetTeamPlayersAlive(TEAM_RED) >= 0 && GetTeamPlayersAlive(TEAM_RED) <= 3) { TeamBalance(); } }
if(playerOnline >= 2 || 4 || 6 || 8) { if(GetTeamPlayersAlive(TEAM_RED) == 0 || 1 || 2 || 3) { TeamBalance(); } }
And
Код:
if(playerOnline >= 2 && playerOnline <= 8) { if(GetTeamPlayersAlive(TEAM_RED) >= 0 && GetTeamPlayersAlive(TEAM_RED) <= 3) { TeamBalance(); } } Код:
if(playerOnline >= 2 || 4 || 6 || 8) { if(GetTeamPlayersAlive(TEAM_RED) == 0 || 1 || 2 || 3) { TeamBalance(); } } |
if(playerOnline >= 2 && playerOnline <= 8)
{
if(GetTeamPlayersAlive(TEAM_RED) >= 0 && GetTeamPlayersAlive(TEAM_RED) <= 3)
{
TeamBalance();
}
}
if the variable "playerOnline" is above or equal to 2 AND if the variable "playerOnline" is below or equal to 3 => CONTINUE SEQUENCE
{
if the condition "GetTeamPlayersAlive(TEAM_RED)" is above or equal to 0 AND if the condition "GetTeamPlayersAlive(TEAM_RED)" is below or equal to 3 => CONTINUE SEQUENCE
{
if all the conditions above are TRUE => PERFORM "TeamBalance();"
}
}
if(playerOnline >= 2) { if(GetTeamPlayersAlive(TEAM_RED) == 0) { TeamBalance(); } } if(playerOnline >= 4) { if(GetTeamPlayersAlive(TEAM_RED) == 1) { TeamBalance(); } } if(playerOnline >= 6) { if(GetTeamPlayersAlive(TEAM_RED) == 2) { TeamBalance(); } } if(playerOnline >= 8) { if(GetTeamPlayersAlive(TEAM_RED) == 3) { TeamBalance(); } }
Ok thank you but please help me if i want to do it like that, this doesn't work, can you fix it?
Код:
if(playerOnline >= 2) { if(GetTeamPlayersAlive(TEAM_RED) == 0) { TeamBalance(); } } if(playerOnline >= 4) { if(GetTeamPlayersAlive(TEAM_RED) == 1) { TeamBalance(); } } if(playerOnline >= 6) { if(GetTeamPlayersAlive(TEAM_RED) == 2) { TeamBalance(); } } if(playerOnline >= 8) { if(GetTeamPlayersAlive(TEAM_RED) == 3) { TeamBalance(); } } |
if(playerOnline >= 2 && GetTeamPlayersAlive(TEAM_RED) == 0) TeamBalance();
else if(playerOnline >= 4 && GetTeamPlayersAlive(TEAM_RED) == 1) TeamBalance();
else if(playerOnline >= 6 && GetTeamPlayersAlive(TEAM_RED) == 2) TeamBalance();
else if(playerOnline >= 8 && GetTeamPlayersAlive(TEAM_RED) == 3) TeamBalance();