Posted 05 August 2012 - 07:43 PM
I'm using the code below as a basic start for a program which will return the id of a computer when it receives a message from the host computer (with an ID of 6).
The idea is that the host computer can receive the id of the receiving computer for use in another program.
Only problem is, I'm getting the 'rednet:350: string expected' error, and can't work out what is wrong.
I've looked at any other examples of the get ID command and rednet sending commands, and can't see any difference to my code.
Even after around 2 hours of experimentation, I've had no luck. So…
Any ideas as to what is wrong here?
Thanks in advance, Rsstn.
rednet.open("right")
local id, msg = rednet.receive()
if id == 6 then
one = os.getComputerID()
rednet.send(6, one)
end
The idea is that the host computer can receive the id of the receiving computer for use in another program.
Only problem is, I'm getting the 'rednet:350: string expected' error, and can't work out what is wrong.
I've looked at any other examples of the get ID command and rednet sending commands, and can't see any difference to my code.
Even after around 2 hours of experimentation, I've had no luck. So…
Any ideas as to what is wrong here?
Thanks in advance, Rsstn.