so use the value from the trackbar instead of a hardcoded number... um presumably CETrainer.CETrackBar1.Value.... ah, actually it's Position not Value, glad I checked in celua.txt _________________
function trbarpos()
local i = CETrainer.CETrackBar2.Position
CETrainer.CELabel1.Caption = CETrainer.CETrackBar2.Position
local mystr=readString(baseAddr+offset*(i)) --- or do something
if(mystr==nil)then
-- do something
end
end
CETrainer.CETrackBar2.onChange = trbarpos
But I saw on your code that 'mystr' value already read by this loop process:
Code:
for i=8575,99999 do
isValid=true
mystr=readString(baseAddr+offset*(i))
if(mystr==nil)then
break
end
_________________
Stealing Code From Stolen Code...
And Admit It.. Hmmm....Typically LOL
and also try to understand what is error message mean.
In your case is 'The offset' is unknown or not defined yet or offset is a string _________________
Stealing Code From Stolen Code...
And Admit It.. Hmmm....Typically LOL
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