Posted: Fri Jun 12, 2015 8:48 am Post subject: Saving Value
The Question Below May Sound Stupid But I Dont Know, My Brain Is Not Processing It.
So In LUA Thats What What I Did
Code:
function Save()
SavedValue = readInteger("00400500") --Save The Value?
end
i created a timer
Code:
t = createTimer(nil,true)
t.setInterval(1000)
t.setOnTimer(check)
And Check is
Code:
function check()
if SavedValue ~= readInteger("00400500") then
Save()
else
end
the problem is SavedValue will Always Equal readInteger("00400500") Except First Time To Run Because It Not Initialized So How Can I Make SavedValue For Example a string That Doesnt Change?
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