Posted 24 November 2013 - 05:26 PM
Hello! What I have for you today might be, wait for it,
THE NOOBIEST QUESTION EVER!
I am making a system where a computer sends the word 'help' to another computer
and the receiving computer prints out the id of the person who sent them it. Don't ask why.
It shows the receiving computer is receiving something, but it is not printing.
Sending computers code:
THE NOOBIEST QUESTION EVER!
I am making a system where a computer sends the word 'help' to another computer
and the receiving computer prints out the id of the person who sent them it. Don't ask why.
It shows the receiving computer is receiving something, but it is not printing.
Sending computers code:
rednet.open("top")
print("ID:")
local id = tonumber(read())
print("Message:")
local m = tonumber(read())
rednet.send(id, m)
Receiving computer's code:
rednet.open("top")
while true do
id, message = rednet.receive()
if message == "help" then
print("This ID needs help:")
print(id)
else
rednet.send(id, "Please send 'help' for troubleshooting.")
end
end
If you need more information feel free to tell me!