Posted 12 September 2013 - 05:46 PM
title: 9x9: 2: 'for' limit must be a number
im trying to buld a house with this. im making a function to build the floor but it gives me that error. How could i do this instead?
im trying to buld a house with this. im making a function to build the floor but it gives me that error. How could i do this instead?
function forward() for
i= 0,x and x>=1 do
turtle.forward()
turtle.digDown()
turtle.select(1)
turtle.placeDown()
end
end
function floor()
forward()
turtle.turnLeft()
x= x-1
turtle.turnLeft()
forward()
turtle.turnLeft()
forward()
turtle.turnLeft()
end
floor()
http://pastebin.com/LduN6muxEdited by