Posted 11 October 2014 - 11:15 PM
So I'm pretty new to Computer Craft and I'm trying to set up a system to open and close doors with the wireless pocket computer. I have a computer that receives the signal and will open/close the doors. On the pocket Computer I have
I don't know how to fix this. Any help would be nice! Thanks.
term.clear()
term.setCursorPos(1,1)
print("Receiver ID: ")
local receiver = read()
term.clear()
term.setCursorPos(1,1)
print("Message: ")
local message = read()
rednet.send(receiver,message)
term.clear()
term.setCursorPos(1,1)
print("Message Sent")
sleep(1.5)
term.clear()
term.setCursorPos(1,1)
So it works fine until I get to the point where I send the message part of the code. Once I hit enter on the message part it says rednet:87: Expected numberI don't know how to fix this. Any help would be nice! Thanks.