02.11.2013, 09:02
This is your error
Fix code:-
Код:
ZoneAttacker[zoneid] = gTeam(killerid); // You have "gTeam(killerid); correct way is:- "gTeam[killerid]"
Код:
if(IsPlayerConnected(killerid) && gTeam[playerid] != gTeam[killerid]) { new zoneid = GetPlayerZone(playerid); if(zoneid != -1 && ZoneInfo[zoneid][zTeam] == gTeam(playerid)) { ZoneDeaths[zoneid]++; if(ZoneDeaths[zoneid] == MIN_DEATHS_TO_START_WAR) { ZoneDeaths[zoneid] = 0; ZoneAttacker[zoneid] = gTeam[killerid]; ZoneAttackTime[zoneid] = 0; GangZoneFlashForAll(ZoneID[zoneid], GetTeamZoneColor(ZoneAttacker[zoneid])); } } }