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 


How Can I Make Pop Up Warning On Enable Script?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
Gear2ndGandalf
Newbie cheater
Reputation: 0

Joined: 22 Jan 2018
Posts: 19
Location: USA

PostPosted: Tue Feb 20, 2024 11:23 pm    Post subject: How Can I Make Pop Up Warning On Enable Script? Reply with quote

More over, how do I make a pop up happen when a script fails to enable?

I want to let users know thay need to start a Halo CE map before the Player Data script can activate.

Please view attachment.



Script Activation Failure.png
 Description:
Need a pop-up window or some users will complain that the table doesn't work.
 Filesize:  11.62 KB
 Viewed:  858 Time(s)

Script Activation Failure.png


Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 140

Joined: 06 Jul 2014
Posts: 4286

PostPosted: Wed Feb 21, 2024 1:01 am    Post subject: Reply with quote

Code:
{$lua}
if syntaxcheck then return end

if not getAddressSafe'halo1.dll' then
  showMessage'start a Halo CE map before the Player Data script can activate'
  error'Module halo1.dll not found'
end
{$asm}

[ENABLE]
...

_________________
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
Gear2ndGandalf
Newbie cheater
Reputation: 0

Joined: 22 Jan 2018
Posts: 19
Location: USA

PostPosted: Wed Feb 21, 2024 2:41 am    Post subject: Reply with quote

This is sweet! Thanks for all your help!
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
Page 1 of 1

 
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