Posted 20 August 2014 - 05:34 AM
I am attempting to send a rednet message to a remote computer, and have that computer display the information. To facilitate this, the message contains the variable that i want the remote computer to set the value as. I'm new to LUA, and cant seem to figure out how to splat these variables from the string received. Any help would be greatly appreciated!
I'm receiving the error message: "Attempt to concatenate string and nil"
Thanks in advance!
Sender:
rp = 1
rednet.broadcast("RP,"..rp,"myprotocol")
Receiver:
id, msg, proto = rednet.receive("myprotocol")
rvar, rval = msg
print("rval")
I'm receiving the error message: "Attempt to concatenate string and nil"
Thanks in advance!