18.02.2011, 15:46
Код:
stock xSetPlayerTeam(id, team) { #if TESTING printf("ID:%i, Name:%s, Old Team: %i, New Team: %i", id, idName[id], GetPlayerTeam(id), team); #endif if( team != GetPlayerTeam(id) ) { switch(team) { case TEAM_USA:UPlayers++; case TEAM_EUR:EPlayers++; case TEAM_ARAB:ABPlayers++; case TEAM_AUS:ASPlayers++; case TEAM_SOV:SPlayers++; case TEAM_LAT:LPlayers++; case TEAM_TERR:TPlayers++; case TEAM_ASIA:APlayers++; } if(team == (id+10)) FPlayers++; switch(GetPlayerTeam(id)) { case TEAM_USA:UPlayers--; case TEAM_EUR:EPlayers--; case TEAM_ARAB:ABPlayers--; case TEAM_AUS:ASPlayers--; case TEAM_SOV:SPlayers--; case TEAM_LAT:LPlayers--; case TEAM_TERR:TPlayers--; case TEAM_ASIA:APlayers--; } if(GetPlayerTeam(id) == (id+10)) FPlayers--; } return SetPlayerTeam(id, team); }
I replaced all SetPlayerTeam in my script...
Any idea why?