Jump to content




Another <eof> Error

help

4 replies to this topic

#1 QazzyTheMan

  • New Members
  • 1 posts

Posted 16 March 2014 - 07:52 PM

I need help with an <eof> error. This piece of code is relatively simple, but apparently there is an issue with the end statements. I'm having difficulty finding the issue myself, so could some one help? Thanks.
The link to the code is here:
https://drive.google...dit?usp=sharing

#2 CometWolf

  • Members
  • 1,283 posts

Posted 16 March 2014 - 10:00 PM

lmfao, you printed it? Just upload it to pastebin...
There shouldn't be any end between an if and an else statement.

#3 sci4me

  • Members
  • 225 posts
  • LocationEarth

Posted 16 March 2014 - 10:07 PM

lmfao, never seen someone print it and screenshot it before.. there are code tags... with a spoiler...

Spoiler


#4 adencraft2000

  • Members
  • 43 posts

Posted 16 March 2014 - 10:36 PM

Here is a DIRECT TYPE UP of the code (STILL BROKEN!)
http://pastebin.com/V5P6QXy7

#5 Simon

  • Members
  • 58 posts
  • LocationSeattle

Posted 17 March 2014 - 02:27 AM

if rs.getInput("left", true) then
  turtle.refuel()
  for i = 0,4,1 do
	turtle.select(3)
	turtle.place()
	turtle.select(2)
	for j = 0,4,1 do
	  turtle.place()
	end
	sleep(1)
	turtle.dig()
	turtle.forward()
  end
  for i = 0,4,1 do
	turtle.back()
  end
end -- Do not put that end there, you need the if statement to be open to use the else on the next line
else then
  os.reboot()
end

Edited by Simon, 17 March 2014 - 02:29 AM.






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users