Posted: Thu Oct 04, 2012 12:52 pm Post subject: Cheat Engine Lua Script (Try or Catch or IgnoreError)
Hey all.
here is my code:
Code:
function setAtkSpeed()
local base = getAddress('[[[[["aion.bin"+00066788]+200]+178]+390]+460]+4F6')
local val = readInteger(base)
if(val == 1782)or(val == 1500)or(val == 1100)or(val == 2200)then
writeInteger(base, 1100)
print("worked.")
end
end
createHotkey("setAtkSpeed",110)
,now the problem is that the base or the pointer is not always a value its (???????) sometimes as i saw in cheat engine.
So when its unknown i get a error if i try to execute this.
How could i prevent that error to open ? or ignore it, im looking for something like try{}catch(error e){} .
Ty for your attention
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