ParkourPenguin I post too much Reputation: 140 Joined: 06 Jul 2014 Posts: 4289
|
Posted: 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.
|
|