question

Weslley Xavier avatar image
Weslley Xavier asked

PlayFabMultiplayerAgentAPI ServerIdKey return null

I'm trying to get the ServerIdKey from the server to make custom setting with my database, but it is getting null values all time for this values



this part my code i try to use



i'm calling it into ReadyForPlayers but before it was On ServerActive Callback and the same thing happens

how can i pass the data to my server?
apissdks
cbn40.png (4.2 KiB)
7cddw.png (26.9 KiB)
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Made Wang avatar image
Made Wang answered

You can get the key-value pair that stores the server details via PlayFabMultiplayerAgentAPI.GetConfigSettings(). Please refer to the script for the key.

Also, you can get this information with GetMultiplayerServerDetails after the server is active.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.