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

Unexpected Symbol Problems

Started by gwingle, 21 March 2013 - 12:18 PM
gwingle #1
Posted 21 March 2013 - 01:18 PM
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!
LazyBoot #2
Posted 22 March 2013 - 02:30 AM
this bit:

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
PixelToast #3
Posted 22 March 2013 - 03:03 AM
that end next to return will error
redmoogle #4
Posted 01 July 2013 - 10: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 :P/>
Engineer #5
Posted 01 July 2013 - 10:55 AM
that end next to return will error
No it wont
redmoogle #6
Posted 01 July 2013 - 10:59 AM
:P/> it has no end it say bios:338 [string "1"] :3: unexpected symbol