Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local tArgs = { ... }
- local CompID = tonumber(tArgs[1])
- io.write "Message: "
- local message = read()
- print ""
- if #tArgs ~= 1 then
- print "Usage: message <compid>"
- return
- end
- if CompID == -1 then
- rednet.open("right")
- rednet.broadcast(message)
- return
- end
- rednet.open("right")
- rednet.send(CompID, message)
Add Comment
Please, Sign In to add comment