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 


Auto Close lua Errors [help]

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
Lynxz Gaming
Expert Cheater
Reputation: 4

Joined: 01 Jul 2017
Posts: 208
Location: help

PostPosted: Thu Apr 05, 2018 6:31 am    Post subject: Auto Close lua Errors [help] Reply with quote

When i open up my trainer it always showing up an error
"Error:attempt to call a nil value"
So i want that to make auto close
Thanks for the reply Very Happy

_________________
my english is bad
discord : rynx#9828
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
Corroder
Grandmaster Cheater Supreme
Reputation: 75

Joined: 10 Apr 2015
Posts: 1667

PostPosted: Thu Apr 05, 2018 7:00 am    Post subject: Re: Auto Close lua Errors [help] Reply with quote

Lynxz Gaming wrote:
When i open up my trainer it always showing up an error
"Error:attempt to call a nil value"


Is show what line number contain error ?

"Error:attempt to call a nil value" appear caused by i.e :
1. Variable(s), functions, etc not stated or declared

2. Can not identify a property name / properties name, i.e by default first form name = UDF1. but you change it to
i.e myform and then in script you still use UDF1. This cause UDF1 not recognize, and so on.

3. Wrote a file name. picture name, etc in script, but not same as files on stream files (name)

So, with this error type then really not understand what you mean with 'i want that to make auto close'

_________________
Stealing Code From Stolen Code...
And Admit It.. Hmmm....Typically LOL
Back to top
View user's profile Send private message
Lynxz Gaming
Expert Cheater
Reputation: 4

Joined: 01 Jul 2017
Posts: 208
Location: help

PostPosted: Thu Apr 05, 2018 7:15 am    Post subject: Re: Auto Close lua Errors [help] Reply with quote

My engplisz bad sorry

there's no number appear on the error

the error just showed on first time opened, i added timer that enabled when opening trainer

_________________
my english is bad
discord : rynx#9828
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
TheyCallMeTim13
Wiki Contributor
Reputation: 50

Joined: 24 Feb 2017
Posts: 976
Location: Pluto

PostPosted: Thu Apr 05, 2018 7:32 am    Post subject: Reply with quote

So instead of fixing the error, you just want to close the Lua Engine form?

And "Error:attempt to call a nil value" means your calling some thing (like what you thing is a function) that is nil , either it doesn't exist yet (may be called before it's declared) or you're using the wrong name (may be a typo).

_________________


Last edited by TheyCallMeTim13 on Thu Apr 05, 2018 7:36 am; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website
Lynxz Gaming
Expert Cheater
Reputation: 4

Joined: 01 Jul 2017
Posts: 208
Location: help

PostPosted: Thu Apr 05, 2018 7:35 am    Post subject: Reply with quote

Nvm i already fixed it, cuz i had a form onshow event that the script is not exsist in the lua script so i remove the form onshow event and it does work! thx
for the reply

sry bad engliz

_________________
my english is bad
discord : rynx#9828
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
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