Decode/encode Utf-8 for MessageService

  1. What do you want to achieve? Keep it simple and clear!
    I want to pass an accescode of a reservesserver through MessageService.

  2. What is the issue?
    The accesscode can’t be passed with MessageService, because it is on UTF-8 format. The error output says I cant pass utf-8 format on messages.

Can you show the code you’re using to send the message?

Try to encode the code before sending it, then just decode it.

1 Like

Thanks a lot! Didn’t think about doing this, and today I tried and it worked wonders! I needed to do this for my golf serverlist (I want people to be able to create their own courses and join others). I reserve and teleport the player that created the game, sending the accesscode with it as data. On the course server, the game collects the data of the first player that joined the game and use that accesscode to keep sending it plus serverinfo (players, time left, placeId) through a MessageService. The lobby place collects these messages to create and update the serverlist:

1 Like