Backtrace - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Backtrace (
/showthread.php?tid=622302)
Backtrace - iLearner - 20.11.2016
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]);
}
}
}
Re: Backtrace - iLearner - 20.11.2016
nvm i fixed it.
Edit: I didnt kill the timer... that was the problem