Posted 19 March 2014 - 05:24 PM
Hello, i want to do app that sends via rednet.broadcast message which received.
Thank you.
Thank you.
while true do -- Infinite loop
local id, message -- Make the variabled local to the main loop
repeat -- Loop and make sure you haven't received your own message
id, message = rednet.receive() -- Get the id and message
until id ~= os.getComputerID() -- Check the id
rednet.broadcast( message ) -- Broadcast the message you received
end
--# My indentation may get screwed up by the forum
If I understood correctly it's something like this you want right?