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

Another <eof> Error

Started by QazzyTheMan, 16 March 2014 - 06:52 PM
QazzyTheMan #1
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.com/file/d/0B8ArpdOlXV6EY3JYOU1iVHlvS0U/edit?usp=sharing
CometWolf #2
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.
sci4me #3
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

giggity
adencraft2000 #4
Posted 16 March 2014 - 10:36 PM
Here is a DIRECT TYPE UP of the code (STILL BROKEN!)
http://pastebin.com/V5P6QXy7
Simon #5
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 on 17 March 2014 - 01:29 AM