23.07.2009, 09:44
Код:
new gTeam[MAX_PLAYERS];
pawn Код:
public OnPlayerRequestSpawn(playerid)
{
new tcount[2];
for(new i, m = GetMaxPlayers(); i < m; i++)
if(IsPlayerConnected(i))
tcount[gTeam]++; // <<<=================== THE ERROR LINE
if(tcount[gTeam[playerid]] > tcount[!gTeam[playerid]])
return SendClientMessage(playerid, RED, "To balance the teams, please select the other team."), 0;
return 1;
}
The error is
Код:
J:\Mini-Missions\Xtreme Tьrk Mini-Missions\gamemodes\campany.pwn(228) : error 033: array must be indexed (variable "gTeam")