Posted 26 June 2013 - 09:48 AM
I need some help with Rednet because every time I try to send something via Rednet it requires me to send it 2 times…
Here are my programs on pastebin
Sending Program: http://pastebin.com/TVEzdd3e
Receiving Program: http://pastebin.com/nWxdhqr6
Solution by Bomb Bloke!
There is the solution he gave me and it worked. Hope that helps for anyone else.
Here are my programs on pastebin
Sending Program: http://pastebin.com/TVEzdd3e
Receiving Program: http://pastebin.com/nWxdhqr6
Solution by Bomb Bloke!
Spoiler
a, b, c = rednet.receive()
if rednet.receive() then
Both of these lines result in the system pulling a rednet message. You only want to call "rednet.receive()" once or else you will indeed need to send two.
Eg, use:a, b, c = rednet.receive(5) if a then
This will wait five seconds for a message. If one was not received in that time, "a" will be nil, so the conditional check will be false.