Posted 06 April 2014 - 01:09 PM
Hello!
I wrote a program and everytime I start it I get the error "bios:339: [string "pathfinding"]:9: 'end' expected (to close 'function' at line 1)"
Can anyone help me?
sorry for my bad english :-)
I wrote a program and everytime I start it I get the error "bios:339: [string "pathfinding"]:9: 'end' expected (to close 'function' at line 1)"
Can anyone help me?
function anfang()
--Forwaerts/forward
turtle.forward()
if turtle.compareDown() == true then
anfang()
end
else then
turtle.back()
end
--Rechts/right
turtle.turnRight()
turtle.forward()
if turtle.compareDown() == true then
anfang()
end
else then
turtle.back()
turtle.turnLeft()
end
--Links/left
turtle.turnLeft()
turtle.forward()
if turtle.compareDown() == true then
anfang()
end
else then
turtle.back()
turtle.turnRight()
end
end
while true do
anfang()
end
sorry for my bad english :-)