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 


A call that error reports as nil?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
bknight2602
Grandmaster Cheater
Reputation: 0

Joined: 08 Oct 2012
Posts: 577

PostPosted: Wed Jul 12, 2017 9:24 am    Post subject: A call that error reports as nil? Reply with quote

I'm tweaking an old table that was created in the form design, not by code. There are a bunch of ListViews that are not visible stacked onto each other and the CheatPanel loads as designed.

The selection of a radio group button is designed to make the related ListView become visible, however I'm getting an error: attempt to call global 'WhichListViewShow' (a nil value)
This partial code is in this order, but for brevity sake only pertinent parts are shown.
Code:
function WhichListViewShow(sender)
...
end-function WhichListViewShow(sender)
...
function CERadioGroup1Click(sender)
indexname = radiogroup_getItemIndex(CheatPanel_CERadioGroup1)
h = radiogroup_getItems(CheatPanel_CERadioGroup1)
heroname = strings_getString(h, indexname)
WhichListViewShow()
WhichName()
form_hide(CheatPanel_CEListView1)
heroname = nil
CheatPanel_CERadioGroup1.setItemIndex(13)
end


What do I need to change to make the subroutine work?
Back to top
View user's profile Send private message Yahoo 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