Posts: 171
Threads: 49
Joined: Jul 2011
pawn Код:
for(new i=0; i < sizeof(ZoneInfo); i++)
{
GangZoneShowForPlayer(playerid, ZoneID[i], GetTeamZoneColor(ZoneInfo[i][gTeam]));
}
Error:
Код:
C:\Users\Jo\Downloads\MySQL.pwn(412) : error 033: array must be indexed (variable "gTeam")
Line:
pawn Код:
GangZoneShowForPlayer(playerid, ZoneID[i], GetTeamZoneColor(ZoneInfo[i][gTeam]));
I done the gTeam[MAX_PLAYERS]; lbblb stuff
What happened?
Posts: 947
Threads: 58
Joined: Nov 2011
Reputation:
0
That should be gTeam[playerid].
Posts: 171
Threads: 49
Joined: Jul 2011
but if I make it
pawn Код:
GangZoneShowForAll(ZoneID[i], GetTeamZoneColor(ZoneInfo[i], gTeam[playerid])); // update the zone color for new team
it shows this error
Код:
C:\Users\Jo\Downloads\MySQL.pwn(325) : error 035: argument type mismatch (argument 1)
Posts: 171
Threads: 49
Joined: Jul 2011
The gTeam is for the team color when area captured.
Posts: 462
Threads: 11
Joined: Jan 2012
Reputation:
0
Can you show us, how you define gTeam?
Posts: 171
Threads: 49
Joined: Jul 2011