20.11.2016, 17:07
PHP Code:
AMX backtrace:
[debug] #0 00047cac in public capturing (playerid=1) at C:\Users\iLearner\Desktop\ffss\pawno\include\FFS/FFS_gangs.inc:220
PHP Code:
forward capturing(playerid);
public capturing(playerid)
{
if(GetTickCount() > (lastupdate[playerid]+3000))
{
new zone = Gang[Player[playerid][PlayerGang]][CurrentZone];
if(isCapturing[playerid])
{
new msg[128]; //line 219, 220 is the below one,
format(msg, sizeof(msg), "{FF0000}** %s gang failed to capture %s zone! Reason: AFK", Gang[Player[playerid][PlayerGang]][GangName], GangZone[zone][ZoneName]);
SendClientMessageToAll(-1, msg);
format(msg, sizeof(msg), "{FF0000}** %s zone will be locked for %d minutes!", GangZone[zone][ZoneName], LOCKED_MINUTES);
SendClientMessageToAll(-1, msg);
Gang[Player[playerid][PlayerGang]][CurrentZone] = -1;
GangZone[zone][ZoneLocked] = GetTickCount();
GangZone[zone][ZoneStatus] = false;
GangZoneStopFlashForAll(GangZone[zone][ZoneHolder]);
}
}
}