This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
J0P5's profile picture

error - placedown()

Started by J0P5, 07 March 2012 - 11:11 AM
J0P5 #1
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.



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:/>/>
Advert #2
Posted 07 March 2012 - 12:17 PM
The function you're looking for is placeDown(), and you also spelled turtle wrong.
J0P5 #3
Posted 07 March 2012 - 12:21 PM
The function you're looking for is placeDown(), and you also spelled turtle wrong.
The function you're looking for is placeDown(), and you also spelled turtle wrong.


I must be retarded -__- I did have placeDown() actually (just not in the topic title) but I mispelled turtle…….


Thanks!