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

Need Help With Options Menu Code

Started by revjoe, 18 September 2013 - 05:44 PM
revjoe #1
Posted 18 September 2013 - 07:44 PM
Title: Need Help With Options Menu Code

I am pretty new to coding with lua and have been pieceing together what i can to make a security system menu.
This is my code:- http://pastebin.com/RtHKbYFj

The error im currently getting is 106 eof expected

This is mainly a novelty code to annoy the people trying to get in my properties so please excuse any rude language although i believe i removed it all.

Please help if someone can show me or tell my mistake it would be very appreciated.
Thank You
Lyqyd #2
Posted 18 September 2013 - 08:01 PM
Split into new topic.

Have you looked through the Common Errors section of one of the sticky posts? It covers '<eof>' expected errors, and may just help you find and solve the problem yourself.
revjoe #3
Posted 18 September 2013 - 08:13 PM
ive looked through as many as i can but everytime i solve the one eof error it causes another. :(/>
Lyqyd #4
Posted 18 September 2013 - 09:01 PM
You should have just kept solving them. Removing the unnecessary "end" at line 105 solves it.
revjoe #5
Posted 24 September 2013 - 10:23 AM
Thank You Your a star, I have one more question im hoping you can help with. I want to add another option to the menu but i cant get it to appear on the options list. Cannot see the problem and dont get an error it just doesnt show.
http://pastebin.com/5DCYCYMW
i know the then is missing from the last option line but even with that fixed it doesnt appear.
Any Help would be great.
Thank You
Lyqyd #6
Posted 24 September 2013 - 12:17 PM
You forgot the quotes around it in the menu function call.
revjoe #7
Posted 25 September 2013 - 09:17 AM
Thanks :D/> Your a star will be adding acknowledgement of your help on the front screen of the menu.