code:
Turtle avait command
http://pastebin.com/yQSvCCQK
I tried:
senderID, message, distance = rednet (too long wihout yelding)
senderID, message, distance = rednet.receive() (attemt to call nill)
Master pc
http://pastebin.com/jypAecUh
err:1: attempt to index ? (a nil value)
err = the program nameOK, that's impossible, unless you've overwritten rednet, what I highly doubt. Double-check for typos.senderID, message, distance = rednet.receive() (attempt to call nil)
What error message are you getting? In wich program? Which line? error:err = the program nameerr:1: attempt to index ? (a nil value)
:1: = the line
attempt to index ? (a nil value) = the error message
type your problem in this way and you'll get help faster
Edit:
You are trying to send "Cycle" to "i" in the "Master pc program"
if you want a variable as the id to send to, do:
id = idofthingtosendto
and
rednet.send(id, "Cycle")
OK, that's impossible, unless you've overwritten rednet, what I highly doubt. Double-check for typos.senderID, message, distance = rednet.receive() (attempt to call nil)
rednet.open("right")
while true do
senderID, message, distance = rednet.receive()
print (message)
shell.run(message)
end
rednet.open("right")
for i = 1, 15 do
rednet.send(i, "Cycle")
end