Specific line - 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: Specific line (
/showthread.php?tid=621424)
Specific line -
MerryDeer - 10.11.2016
Hi,
It's possible to know for ex killtimer, if timerid is lower than 5 print, in what gamemode line is using killtimer function which is killing timer lower than 5ID. because this is my server global timers, sometimes they stop to work, so i gues they are killing somewhere.
Re: Specific line -
OneDay - 10.11.2016
https://github.com/Zeex/pawn/wiki/What's-new#__line
only with the new compiler and hook
Код:
PrintKillTimer(line, timerid)
{
KillTimer(timerid);
if (timerid < 5) printf("kill %d on %d", timerid, line);
}
#define KillTimer(%0) PrintKillTimer(__line, %0)
maybe not <5 though if they are random ids
Re: Specific line -
MerryDeer - 11.11.2016
How to use this compiler