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
1
4 replies to this topic
#1
Posted 16 March 2014 - 07:52 PM
#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.
There shouldn't be any end between an if and an else statement.
#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
#4
Posted 16 March 2014 - 10:36 PM
#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 by Simon, 17 March 2014 - 02:29 AM.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users