Jump to content




Unexpected Symbol Problems


5 replies to this topic

#1 gwingle

  • New Members
  • 1 posts

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!

#2 LazyBoot

  • Members
  • 8 posts

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

#3 PixelToast

  • Signature Abuser
  • 2,265 posts
  • Location3232235883

Posted 22 March 2013 - 03:03 AM

that end next to return will error

#4 redmoogle

  • New Members
  • 2 posts

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 :P

#5 Engineer

  • Members
  • 1,378 posts
  • LocationThe Netherlands

Posted 01 July 2013 - 09:55 AM

View PostPixelToast, on 22 March 2013 - 03:03 AM, said:

that end next to return will error
No it wont

#6 redmoogle

  • New Members
  • 2 posts

Posted 01 July 2013 - 09:59 AM

:P 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