Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


IF conditional statement in lua trainer
Goto page Previous  1, 2
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
ParkourPenguin
I post too much
Reputation: 138

Joined: 06 Jul 2014
Posts: 4275

PostPosted: Fri Jun 09, 2017 2:17 pm    Post subject: Reply with quote

By the "Active property", I mean the property of a MemoryRecord object that is referenced by the identifier "Active":
Code:
-- CheatEntry is a MemoryRecord object
-- set the Active property to false
CheatEntry.Active = false

Freezing the memory record is superfluous since you're already periodically setting the value in the timer.

Tum wrote:
Maybe its something to do with the function constantly destroying the timer if the togglebox is false, and it destroys the timer before the the togglebox is true ?

Why even destroy the timer in the OnClick event handler? I can't say exactly what's wrong if you don't post the code.

_________________
I don't know where I'm going, but I'll figure it out when I get there.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites