This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Sporegen's profile picture

attempt to index ? (a nil value)

Started by Sporegen, 13 August 2013 - 04:54 PM
Sporegen #1
Posted 13 August 2013 - 06:54 PM
Title: attempt to index ? (a nil value)

I've been working on a simple menu program, when i try to run it i get a attempt to index ? (a nil value) error.
I'm trying to call the Handler Functions from within the table (line 18, 19 and 20).
The error seems to occur on line 43.
Here's the code: http://pastebin.com/2dGvrkp0
Thanks in advance.
Bubba #2
Posted 13 August 2013 - 08:14 PM
Split into new topic.
Yevano #3
Posted 13 August 2013 - 10:18 PM
Change menu to mainMenu (or activeMenu) on line 43.
Sporegen #4
Posted 14 August 2013 - 12:07 AM
How did i not see that, i feel stupid now.
Thanks Yevano!
Yevano #5
Posted 14 August 2013 - 12:10 AM
You're welcome. :D/>