Posted: Sat Sep 22, 2012 11:14 pm Post subject: What is wrong with this code?Please help me
Code:
function CETimer1Timer(sender)
if (control_getChecked(TD_goldCheckBox)) == true then
writeInteger("[6acb28]+30", control_getCaption(TD_goldEdit))
end
if (control_getChecked(TD_bloodCheckBox)) == true then
writeInteger("[6acb28]+38", control_getCaption(TD_bloodEdit))
end
end
Error:[string "function CETimer1Timer(sender)..."]:17: attempt to call global 'control_getChecked' (a number value)
I am trying to lock gold and blood,Please tell me how to getChecked???wrong grammar?
Last edited by tukey on Sun Sep 23, 2012 1:55 am; edited 1 time in total
Joined: 25 Jan 2006 Posts: 8516 Location: 127.0.0.1
Posted: Sun Sep 23, 2012 1:31 am Post subject:
You will need to either use a code-cave and alter how the game accesses the addresses you mentioned when your check boxes are enabled. Or you an use a timer/thread to force the trainer to keep writing to the addresses until the checkbox is unchecked. _________________
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