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

Attempt to to index ? (a nil value)

Started by taco_muncha, 01 July 2013 - 11:48 PM
taco_muncha #1
Posted 02 July 2013 - 01:48 AM
I am new to computercraft only having watched and read a few tutorials. I am trying to make a programs that fills up three buckets that are in different slots in the turtle.The name of the progran is "fill". Here is the code;

while true do
turtle.select(1)
turtle.place()
turtle.select(2)
turtle.place()
turtle.select(3)
turtle.place()
sleep(2)
end

The error I receive when attempting to run the code is;
fill:4: attempt to index ? (a nil value)
Lyqyd #2
Posted 02 July 2013 - 01:56 PM
Split into new topic.

Are you sure that that is the exact code you're using to cause that error?
Levi #3
Posted 02 July 2013 - 02:21 PM
Works fine…
sure you're making a normal program?
taco_muncha #4
Posted 03 July 2013 - 01:30 AM
Double checked a found a spelling mistake in the code. Sorry about this.