question

Christoph Bruger avatar image
Christoph Bruger asked

GetLeaderboardAroundPlayer bug: Does not return around player

GetLeaderboardAroundPlaye() doesn't return the players around the player.

https://docs.microsoft.com/en-us/rest/api/playfab/client/player-data-management/getleaderboardaroundplayer?view=playfab-rest

"PlayFab unique identifier of the user to center the leaderboard around."

Instead it always returns the players in front of the player, no matter the setup of the request. The player is always the last in the list and has the highest position.

Code, just in case:

// Leaderboard around player
        GetLeaderboardAroundPlayerRequest requestLeaderboardAroundPlayer = new GetLeaderboardAroundPlayerRequest()
        {
            StatisticName = name,
            MaxResultsCount = 10
        };
Leaderboards and Statistics
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

·
JayZuo avatar image
JayZuo answered

I can't reproduce your issue with my test title. Maybe this is because the player you are using has the lowest stat value so the player has the highest position and is always at the last of the list. You may update the player's statistic value to see if there is any difference.

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.