Title: Unexpected Symbol Problems
I am attempting to create a program for a mining turtle to chop down a tree. I've programmed it to refuel and detect the proper blocks and anything else like that, but I am getting this error:
bios:338: [string "tree.lua"]:26: unexpected symbol
Even after looking around for a while, I couldn't find anything that could fix the problem.
Here is a PasteBin of my code: http://pastebin.com/7jEtijTS
Thanks in advance!
0
Unexpected Symbol Problems
Started by gwingle, Mar 21 2013 01:18 PM
5 replies to this topic
#1
Posted 21 March 2013 - 01:18 PM
#2
Posted 22 March 2013 - 02:30 AM
this bit:
should be more like this:
edit: fixed indentation
elseif if turtle.detectUp() then return end elseif turtle.up() end
should be more like this:
elseif turtle.detectUp() then return end else turtle.up() end
edit: fixed indentation
#3
Posted 22 March 2013 - 03:03 AM
that end next to return will error
#4
Posted 01 July 2013 - 09:44 AM
I feal like I noob I can even make a simplest of the simplest programs D: code: shell.run = monitor right secret/alongtimeago the error is the unexpected symbol :1: Unexpected symbol program name 1
#6
Posted 01 July 2013 - 09:59 AM
it has no end it say bios:338 [string "1"] :3: unexpected symbol
2 user(s) are reading this topic
0 members, 2 guests, 0 anonymous users