Help Gzone Error
#2

This is your error
Код:
ZoneAttacker[zoneid] = gTeam(killerid);
// You have "gTeam(killerid); correct way is:- "gTeam[killerid]"
Fix code:-
Код:
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]));
}
}
}
Reply


Messages In This Thread
Help Gzone Error - by proSeryoga - 02.11.2013, 05:52
Re: Help Gzone Error - by xF4Life - 02.11.2013, 09:02

Forum Jump:


Users browsing this thread: 1 Guest(s)