question

MoonHeonYoung avatar image
MoonHeonYoung asked

GetAroundPlayerLeaderBoard Question

There are 25 players on the "Level" statistic leaderboard.

If I call GetLeaderboardAroundPlayer after creating a new player (no level statistic exists yet),

it returns an object with position 25 and statValue 0.

However, the description of the function says that if the player does not have the relevant statistic,

it returns position 0.

Why is it returning 25? (position 25, statvalue 0 not have "Level")

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

·
Sarah Zhang avatar image
Sarah Zhang answered

Thanks for the report. It should be a document issue of the section - https://docs.microsoft.com/en-us/rest/api/playfab/server/player-data-management/getleaderboardarounduser?view=playfab-rest#response. In the test, when the caller has no corresponding statistics, its StatValue would be 0, the Position of this player would be at the bottom of the leaderboard. We would inform this document issue to our team for investigation.

2 comments
10 |1200

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

MoonHeonYoung avatar image MoonHeonYoung commented ·

Thanks for the explanation. ! I understand.

0 Likes 0 ·
MoonHeonYoung avatar image MoonHeonYoung commented ·

So, if there are 4000 players on the leaderboard, will all players with a stat value of 0 have a position of 4001? (Duplicate value?)

0 Likes 0 ·

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.