This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
baeshra's profile picture

[SOLVED]Sending a Compound Rednet Message

Started by baeshra, 06 April 2013 - 09:17 AM
baeshra #1
Posted 06 April 2013 - 11:17 AM
I'm sure this is a fairly common mistake though I didn't find anything through an immediate search.. How would I go about sending a single rednet message which contains the string "place" followed by the value of a variable? Currently I have:

msg = 1
msg = tostring(msg)
rednet.send(11,"place"msg)
What's wrong here?
Telokis #2
Posted 06 April 2013 - 11:18 AM
You forgot the ".." to concat your strings !

rednet.send(11, "place"..msg)

Will work !
baeshra #3
Posted 06 April 2013 - 11:19 AM
Thanks! I'm almost done with my control room setup now.