question

M.K Kannan avatar image
M.K Kannan asked

leaderbaord GetPlayerStatisticsRequest not returning version if leaderboard is empty after last version reset

leaderbaord GetPlayerStatisticsRequest not returning version if leaderboard is empty after last version reset

Debug.Log("calling stats"); PlayFabClientAPI.GetPlayerStatistics(new GetPlayerStatisticsRequest(),OnGetStats,error=>Debug.LogError(error.GenerateErrorReport()) );

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

It’s by design. The API GetPlayerStatistics is designed to retrieve the indicated statistics for the current player. The empty statistics will not be displayed. If you want to retrieve the current version of the specific leaderboard, you can call the API GetLeaderboard.

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.