Posted 16 July 2013 - 06:50 PM
Title: attempt to call nil
So,i saw Direwolf20 video with sheep farm. I copied the code, and i wanted to "expanded a bit". So i created two wireless modems (one on the turtle, and the other one on the house computer). What I want is whenever i type in "sheep" on my main computer, it will send message to the turtle to run shearing program.
Now here is the problem:
on my turtle it always print this error: startup2:3: attempt to call nil
Here is the code on the turtle: http://pastebin.com/FLtkj9Q3
On the computer i just wrote this:
rednet.open("right")
rednet.send(4, shear)
Plese help. :(/>
So,i saw Direwolf20 video with sheep farm. I copied the code, and i wanted to "expanded a bit". So i created two wireless modems (one on the turtle, and the other one on the house computer). What I want is whenever i type in "sheep" on my main computer, it will send message to the turtle to run shearing program.
Now here is the problem:
on my turtle it always print this error: startup2:3: attempt to call nil
Here is the code on the turtle: http://pastebin.com/FLtkj9Q3
On the computer i just wrote this:
rednet.open("right")
rednet.send(4, shear)
Plese help. :(/>