Posted 14 March 2012 - 03:32 AM
I keep getting weird errors when I run the program "house". I'm trying to make the turtle build a simple house. That is all. But after I tweaked and added code to it for the 2nd layer (1st layer went fine), it gives me an error in line 47. It expects an "=". I tried doing all sorts of things to the line, adding "=" or extra "end"s. Can some one point out the missing block of code that gives the error? Here is the entire code:
Spoiler
for n=1,5 do
turtle.back()
turtle.place()
end
turtle.turnLeft()
for n=1,5 do
turtle.back()
turtle.place()
end
turtle.turnLeft()
for n=1,5 do
turtle.back()
turtle.place()
end
turtle.turnLeft()
for n=1,4 do
turtle.back()
turtle.place()
end
turtle.up()
turtle.placeDown()
turtle.back()
turtle.turnLeft()
for n=1,3 do
for m=1,2 do
turtle.back()
turtle.place()
end
turtle.select(2)
for m=1,2 do
turtle.back()
turtle.place()
end
turtle.select(1)
turtle.back()
turtle.place()
turtle.turnLeft()
end
for n=1,2 do
turtle.select(1)
turtle.back()
turtle.place()
end
turtle.select(2)
for n=1,2 do
turtle.back
turtle.place()
end
turtle.up()
turtle.select(1)
turtle.placeDown()
turtle.back
turtle.turnLeft()
for n=1,5 do
turtle.back()
turtle.place
end
turtle.turnLeft()
end