Posted 04 January 2013 - 05:17 AM
Having issues with a basic script I'm using to learn LUA:
This is the error:
distance = 0
while true do
turtle.getFuelLevel()
end
while turtle.getFuelLevel() > 100 do
if turtle.detect() == true then
turtle.dig()
turtle.up()
turtle.dig()
turtle.forward()
turtle.down()
end
end
elseif turtle.detect() == false then
turtle.up()
if turtle.detect() == true then
turtle.dig()
turtle.forward()
turtle.down()
end
elseif turtle.detect() == false then
turtle.forward()
turtle.down()
end
end
This is the error:
bios:338: [string "a1"]:14: '<eof>' expected