Posted: Sun Jan 09, 2022 9:19 am Post subject: Destroy local timer in AA
So some of you were encountered with problem where you wasn't able to destroy local timer in AA script and that's was causing an unexpected value write or condition that always checks or doing something(read value or write value or C Stack overflow)
So here's solution:
Code:
{$lua}
if syntaxcheck then return end
[ENABLE]
local t = createTimer(nil)
t.Interval = 100
t.Enabled = true
t.OnTimer = function()
if not memrec.Active then --Add this condition to destroy the timer,variant of condition: if memrec.Active == false then
t.destroy()
t = nil
end
end
[DISABLE]
{$asm}
_________________
void(__cdecl *Haxing)(HWND hGameWindow)
Last edited by Frouk on Sun Jan 09, 2022 9:57 am; edited 1 time in total
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum