Posted 07 March 2012 - 12:11 PM
So I am making a little program that will build a square wall for me, it's pretty close to done, but the main idea behind it; building, isn't working yet.
For some reason it gives me an error when I try to use placedown(), and I can;t think of what I could've done wrong.
The error I get:
Can someone tell me what I did wrong? If it's caused by something outside the snippet i posted (which I highly doubt), here is the full code.
If you have any other tips on my code, let me know :unsure:/>/>
For some reason it gives me an error when I try to use placedown(), and I can;t think of what I could've done wrong.
local var=function()
turtle.up()
while a > 0 do
[color=#ff0000]turle.placeDown()[/color]
turtle.forward()
a = a - 1
end
The error I get:
attempt to index ? (a nil value)
Can someone tell me what I did wrong? If it's caused by something outside the snippet i posted (which I highly doubt), here is the full code.
If you have any other tips on my code, let me know :unsure:/>/>