Posted 25 December 2012 - 09:59 PM
Hello, I'm trying to get this program to work, but apparently it just gives me a nonsense error message. bios:338:
[string "test1"]:18: 'end' expected (to close 'if' at line 17) [CODE]
for 1=1,2 do
turtle.digDown()
turtle.down()
end
dir2go = 2
for i=1,3 do
for i = 1,2 do
turtle.dig()
turtle.digDown()
turtle.forward()
end
turtle.digDown()
if i == "3" then <-------------------line 17
break()
end
if dir2go == 1 then
bla bla bla
else
bla bla bla
end
end
WHAT IS WRONG WITH THIS CODE???