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

Push:14: attempt to index ( a nil value):

Started by Noobcoder, 09 July 2013 - 03:15 AM
Noobcoder #1
Posted 09 July 2013 - 05:15 AM
I'm really new to computercraft and I made a basic code.. I have the same problem he does.. Push:14: attempt to index ( a nil value): Code; http://www.pastebin.com/T2aawqih.. It probably has quite a few mistakes if someone would be kind enough to fix the attempt to index.. thanks =)
Cranium #2
Posted 09 July 2013 - 09:02 AM
Split into new topic.

For future reference, do not hijack someone else's topic. It is against our forum rules, and for new members, we do have a specific place to post if you are unable to make your first topic.
CosmoConsole #3
Posted 09 July 2013 - 09:07 AM
Simple typo…

   buttons.setTable("Engine", Engine, 10,20,3,5)
   buttons.setTable("Fuel", Fuel, 22,32,3,5)
should be

   button.setTable("Engine", Engine, 10,20,3,5)
   button.setTable("Fuel", Fuel, 22,32,3,5)
As the two lines below these two.

Also, the current code:

rs.setBundledOutput(bottom, colors.magenta)
This would set so that only the Magenta input is on. Or is it in purpose, that when you click one it sets only that one to be on and rest off?