turtle.refuel() turtle.detect() turtle.dig() turtle.forward() turtle.digUp() turtle.turnRight turtle.dig() turtle.forward() turtle.digUp() turtle.turnLeft() turtle.turnLeft() turtle.forward() turtle.forward() turtle.forward() end
<eof> expected error
Started by markandmc, Dec 23 2013 04:58 AM
4 replies to this topic
#1
Posted 23 December 2013 - 04:58 AM
So I'm getting this <eof> error everytime I try to run this program
#2
Posted 23 December 2013 - 09:30 AM
You need an if statement if you want that turtle.detect to do anything:
if turtle.detect() then
#3
Posted 23 December 2013 - 09:39 AM
Since you don't have an if statement/loop/function or something there is no need for an end there.
But my guess is you want to use 'if turtle.detect() then' as Lyqyd posted above.
But my guess is you want to use 'if turtle.detect() then' as Lyqyd posted above.
#4
Posted 23 December 2013 - 08:45 PM
Thanks, I'll try.
#5
Posted 23 December 2013 - 11:11 PM
When you're done trying, your code should look like this
Spoiler
2 user(s) are reading this topic
0 members, 2 guests, 0 anonymous users











