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 


Error:attempt to call a nil value while doing a speedhack co

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
A Crazy Fox
How do I cheat?
Reputation: 0

Joined: 15 Apr 2017
Posts: 6

PostPosted: Sat Apr 15, 2017 12:09 am    Post subject: Error:attempt to call a nil value while doing a speedhack co Reply with quote

help! when i did this code
Code:
function CEButton1Click(sender)
speedhack_setSpeed(4)
 end
end
function CEButton2Click(sender)
speedhack_setSpeed(5)
 end
end
function CEButton3Click(sender)
speedhack_setSpeed(3)
 end
end


it gives me this error when i click this button
Quote:
Error:attempt to call a nil value
[/quote]
_________________
[img][/img]

A crazy fox
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 338

Joined: 09 May 2003
Posts: 19891
Location: The netherlands

PostPosted: Sat Apr 15, 2017 12:18 am    Post subject: Reply with quote

is the OnClick function of that button set to one of those 3 funtions or something else ?
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Back to top
View user's profile Send private message MSN Messenger
A Crazy Fox
How do I cheat?
Reputation: 0

Joined: 15 Apr 2017
Posts: 6

PostPosted: Sat Apr 15, 2017 3:05 am    Post subject: Reply with quote

Dark Byte wrote:
is the OnClick function of that button set to one of those 3 funtions or something else ?


uhh, yes

_________________
[img][/img]

A crazy fox
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 338

Joined: 09 May 2003
Posts: 19891
Location: The netherlands

PostPosted: Sat Apr 15, 2017 5:28 am    Post subject: Reply with quote

and did you execute that lua code before clicking the buttons ?
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Back to top
View user's profile Send private message MSN Messenger
A Crazy Fox
How do I cheat?
Reputation: 0

Joined: 15 Apr 2017
Posts: 6

PostPosted: Sat Apr 15, 2017 11:15 am    Post subject: Reply with quote

Dark Byte wrote:
and did you execute that lua code before clicking the buttons ?


oh thanks cause i didnt excute.

_________________
[img][/img]

A crazy fox
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