Posted 07 November 2013 - 06:29 PM
Yeah i know, the title is confusing, but if you read this you will understand my problem:
i made a RedNet program, just a little test, but when i receive a message from someone when i want to type a message the text im typing prints above the message i received, here is the code:
i made a RedNet program, just a little test, but when i receive a message from someone when i want to type a message the text im typing prints above the message i received, here is the code:
function common()
term.clear()
term.setCursorPos(1, 1)
rednet.open("back")
while true do
mes=read()
rednet.broadcast(mes)
end
end
function receive()
while true do
local senderId, message, distance = rednet.receive()
print("PC "..senderId.." Says: "..message)
end
end
parallel.waitForAny(common, receive)