so i was using rednet, and it decided to fail.
i just did a simple rednet.receive(), then it says
lua:1: attempt to call nil
9 replies to this topic
#1
Posted 11 July 2015 - 03:02 PM
#2
Posted 11 July 2015 - 03:31 PM
You probably misspelled it. Check the spelling, Lua is also case-sensitive, so 'rednet' is not the same as, for example, 'RedNet'.
#3
Posted 11 July 2015 - 03:35 PM
Moved to Ask a Pro.
#4
Posted 11 July 2015 - 04:47 PM
Can we see more code? And make sure the modem is on "rednet.open("side")"
Edited by The_Cat, 11 July 2015 - 04:47 PM.
#5
Posted 14 July 2015 - 03:20 PM
You misspelled receive. You wrote recieve.
#6
Posted 15 July 2015 - 04:42 AM
i've tried both, and no i didn't
just recheck that .-.
just recheck that .-.
Edited by Wait_, 15 July 2015 - 04:43 AM.
#8
Posted 17 July 2015 - 10:44 AM
maybe u need to use id,message = rednet.receive(()
#10
Posted 17 July 2015 - 03:24 PM
If you would like the message rednet is sending use this.
Here is an example.
rednet.open("left") -- change left to the side of the computer/turtle the modem is on
local senderid, message = rednet.recieve()
Here is an example.
rednet.open("top")
while true do
local senderid, message = rednet.recieve()
print(message)
end
More info here
Edited by BowWhalley, 17 July 2015 - 03:46 PM.
3 user(s) are reading this topic
0 members, 3 guests, 0 anonymous users












