Jump to content
  • Sky
  • Blueberry
  • Slate
  • Blackcurrant
  • Watermelon
  • Strawberry
  • Orange
  • Banana
  • Apple
  • Emerald
  • Chocolate
  • Charcoal

michel

Members
  • Content Count

    5
  • Joined

  • Last visited

Posts posted by michel

  1. You want to pull the message always or just one time?
     

    while true do
      local _, localNetworkCard, remoteAddress, port, distance, message = event.pull("modem_message")
      print(message)
    end

    or

    local message
    while true do
      local _, localNetworkCard, remoteAddress, port, distance, msg = event.pull("modem_message")
      if msg then
        message = msg
        break
      end
    end

    i think that will work, if not the first one sure will. I hope i helped you

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.