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.com/file/d/0B8ArpdOlXV6EY3JYOU1iVHlvS0U/edit?usp=sharing
1281 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.
226 posts
Location
Earth
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
295 posts
Posted 16 March 2014 - 10:36 PM
Here is a DIRECT TYPE UP of the code (STILL BROKEN!)
http://pastebin.com/V5P6QXy7
58 posts
Location
Seattle
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