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 


Cheat Engine Forum Index
PostGo back to topic
ParkourPenguin
I post too much
Reputation: 140
Joined: 06 Jul 2014
Posts: 4289

PostPosted: Sun Nov 14, 2021 12:27 pm    Post subject:

You need "if syntaxcheck then return end" in every {$lua} block.
This doesn't work:
Code:
{$lua}
if syntaxcheck then return end
{$asm}
[ENABLE]
{$lua}
print'Script Enabled'
{$asm}

[DISABLE]
{$lua}
print'Script Disabled'
{$asm}
"Script Enabled" / "Script Disabled" will be printed when the script is saved.
This works:
Code:
[ENABLE]
{$lua}
if syntaxcheck then return end
print'Script Enabled'
{$asm}

[DISABLE]
{$lua}
if syntaxcheck then return end
print'Script Disabled'
{$asm}
This only prints when the script is actually enabled / disabled.

Also, you forgot the $ in "{$LUA}" after [ENABLE] in this post:
https://forum.cheatengine.org/viewtopic.php?p=5775086#5775086
_________________
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
Post reviews:   Approve 1
Author Review
ByTransient
Review: Approve
Post reference:
ReviewPosted: Mon Nov 15, 2021 12:30 am

👍🥀
Back to top
View user's profile Send private message
Display:  
Cheat Engine Forum Index


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites