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

attempt to call nil

Started by Jacky, 16 July 2013 - 04:50 PM
Jacky #1
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. :(/>
Cranium #2
Posted 16 July 2013 - 07:04 PM
Split to new topic.

On line three, you misspelled receive.
Make sure you spell functions properly, or else they won't work :)/>
Jacky #3
Posted 16 July 2013 - 07:35 PM
Whoa, never thought that it would be that simple. Thanks :)/>
HurricaneCoder #4
Posted 17 July 2013 - 12:06 AM
Whoa, never thought that it would be that simple. Thanks :)/>

Next time just check your spelling again. That is where problems usually occur.