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

Secretss

Members
  • Content Count

    1
  • Joined

  • Last visited

Posts posted by Secretss

  1. For the people who experience issues add this

    command = command:gsub("%s+", "")

    just after this.

    .....
      print "Awaiting next command.."
      local msg = table.pack(event.pull("modem_message"))
      local command = msg[6]

     So like that

    .....
      print "Awaiting next command.."
      local msg = table.pack(event.pull("modem_message"))
      local command = msg[6]
      command = command:gsub("%s+", "")
    	

     When you sent string over network card. It adds many space after the text. So with the command I have added it removes all the spaces and let it works as it should do.

×
×
  • Create New...

Important Information

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