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

help with line of code

Started by tysciman7, 05 April 2013 - 12:17 PM
tysciman7 #1
Posted 05 April 2013 - 02:17 PM
Ok so I am trying to display a message that I type on another computer
But it won't display the message just ..msg
The code is:
id, msg = rednet.receive()
If id == 36 then
mon.write(" ..msg")
End
Symmetryc #2
Posted 05 April 2013 - 02:23 PM
Change
mon.write("..msg")
to
mon.write(msg)
You don't use "" when you are using a variable; "" are for strings.
tysciman7 #3
Posted 05 April 2013 - 02:26 PM
Ok thank you