Posted: Thu Aug 10, 2017 5:11 am Post subject: I need help with toggle loop
Code:
function CEButton1Click(sender)
if a==1 then
function mytime()
if (acthp < fullhp) then
fullhp = 100
local acthp = readFloat("[[[[[[[[[[hw.dll+00EA0F64]+20]+98]+88]+B8]+88]+98]+90]+4D0]+4E0]+7B4")
writeFloat("[[[[[[[[[[hw.dll+00EA0F64]+20]+98]+88]+B8]+88]+98]+90]+4D0]+4E0]+7B4", readFloat("[[[[[[[[[[hw.dll+00EA0F64]+20]+98]+88]+B8]+88]+98]+90]+4D0]+4E0]+7B4")+1)
end
end
if (a==b) then
a=0
else
a=a+1
end
end
end
a=0
b=2
timer.Interval = 1000
timer.Enabled = true
timer = createTimer(nil)
timer.OnTimer = function(mytime)
end
and all i get is this:
Error:[string "timer = createTimer(nil)
..."]:10: attempt to index a nil value (global 'sender')
Error:[string "timer = createTimer(nil)
..."]:8: attempt to index a nil value (global 'sender')
I swear if i see those errors again im going to flip, i saw them about 1000 times trying to fix this and i was all out of luck, the intention of this code is to regen hp and that is what it does but it just ignores the toggle and gives me errors. _________________
local function mytime(Sender)
if a==1 then
if (acthp < fullhp) then
fullhp = 100
local acthp = readFloat("[[[[[[[[[[hw.dll+00EA0F64]+20]+98]+88]+B8]+88]+98]+90]+4D0]+4E0]+7B4")
writeFloat("[[[[[[[[[[hw.dll+00EA0F64]+20]+98]+88]+B8]+88]+98]+90]+4D0]+4E0]+7B4", readFloat("[[[[[[[[[[hw.dll+00EA0F64]+20]+98]+88]+B8]+88]+98]+90]+4D0]+4E0]+7B4")+1)
end
end
Using this code does remove the error but does not regen the hp.
Code:
local function mytime(Sender)
if a==1 then
if (acthp < fullhp) then
fullhp = 100
local acthp = readFloat("[[[[[[[[[[hw.dll+00EA0F64]+20]+98]+88]+B8]+88]+98]+90]+4D0]+4E0]+7B4")
writeFloat("[[[[[[[[[[hw.dll+00EA0F64]+20]+98]+88]+B8]+88]+98]+90]+4D0]+4E0]+7B4", readFloat("[[[[[[[[[[hw.dll+00EA0F64]+20]+98]+88]+B8]+88]+98]+90]+4D0]+4E0]+7B4")+1)
end
end
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