24.01.2010, 14:04
Код:
for(new p = 0; p < GetMaxPlayers(); p++) { if (gTeam[p] == TEAM_HOBO) { count1++; } else if (gTeam[p] == TEAM_RICH) { count2++; } } if ((count1 > count2) && gTeam[playerid] == TEAM_HOBO) return SendClientMessage(playerid, COLOR_RED, "You've been switched to the other team to keep the teams even!"); else if ((count2 > count1) && gTeam[playerid] == TEAM_RICH) return SendClientMessage(playerid, COLOR_RED, "You've been switched to the other team to keep the teams even!"); return 1; }
If I try it gives me errors.