Posted 30 December 2012 - 02:57 AM
Hey
I wanted to make a programm to fell my trees(4 big) like this:
But i get this error:
bios:338: [string "tree"]:14: ´end´expected (to close ´function´at line 1)
What did i do wrong?
I wanted to make a programm to fell my trees(4 big) like this:
function tree()
if
turtle.attack()
then
turtle.forward()
else
turtle.digup()
turtle.up()
turtle.turnLeft()
end
(I know there are missing some parts but i just wanted to know how to fix the error)But i get this error:
bios:338: [string "tree"]:14: ´end´expected (to close ´function´at line 1)
What did i do wrong?