Microsoft Azure PlayFab logo
    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Add-ons
    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA
  • Runs on PlayFab
  • Pricing
    • Blog
    • Forums
    • Contact us
  • Sign up
  • Sign in
  • Ask a question
  • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges
  • Home /
  • API and SDK Questions /
avatar image
Question by jilm10001@gmail.com · Mar 08, 2019 at 08:22 AM · Leaderboards and Statistics

How can I get user information in the leaderboard list?

I already have PlayerProfileViewConstraints appended to the request statement, but when I return it does not contain the user's information.

ClientModels::GetLeaderboardRequest req;

req.StatisticName = leaderboardKey;

req.StartPosition = startPos;

req.MaxResultsCount = maxResult;

PlayerProfileViewConstraints* profileinfo = newPlayerProfileViewConstraints();

profileinfo->ShowAvatarUrl = true;

profileinfo->ShowDisplayName = true;

profileinfo->ShowLocations = true;

// profileinfo->ShowStatistics = true;

req.ProfileConstraints = profileinfo;

Please tell me why or where the error is, the information of the user cannot be returned with the Leaderboard list.

Thank!

Comment

People who like this

0 Show 0
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
Best Answer

Answer by Jay Zuo · Mar 08, 2019 at 09:47 AM

Have you enabled Client Profile Options in Settings? To get corresponding profile info in client, you will need to enable them first.


snipaste-2019-03-08-17-33-07.png (88.3 kB)
Comment
jilm10001@gmail.com

People who like this

1 Show 2 · Share
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image jilm10001@gmail.com · Mar 11, 2019 at 01:30 AM 0
Share

I checked those items, but when the leaderboard returned, I didn't receive them.

I can get them other function "getPlayerAdvanceInfos" with params IDUser.

screen-shot-2019-03-11-at-82023-am.png (120.8 kB)
avatar image Jay Zuo ♦ jilm10001@gmail.com · Mar 11, 2019 at 02:48 AM 0
Share

May I know what's the SDK you are using? AFAIK, there is no "getPlayerAdvanceInfos" method in PlayFab. Could you share more details and the code you are using?

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Navigation

Spaces
  • General Discussion
  • API and SDK Questions
  • Feature Requests
  • PlayStream
  • Bugs
  • Add-on Marketplace
  • LiveOps
  • Follow this Question

    Answers Answers and Comments

    2 People are following this question.

    avatar image avatar image

    Related Questions

    Getting resulting statistics after updating them. 1 Answer

    How many leaderboards can you have? 1 Answer

    CustomTags on the player_ranked_on_leaderboard_version Event. 1 Answer

    Remove a tag from all users? 1 Answer

    How to implement a per-level leaderboard? 1 Answer

    PlayFab

    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Runs on PlayFab
    • Pricing

    Solutions

    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA

    Engineers

    • Documentation
    • Quickstarts
    • API Reference
    • SDKs
    • Usage Limits

    Resources

    • Forums
    • Contact us
    • Blog
    • Service Health
    • Terms of Service
    • Attribution

    Follow us

    • Facebook
    • Twitter
    • LinkedIn
    • YouTube
    • Sitemap
    • Contact Microsoft
    • Privacy & cookies
    • Terms of use
    • Trademarks
    • Safety & eco
    • About our ads
    • © Microsoft 2020
    • Anonymous
    • Sign in
    • Create
    • Ask a question
    • Create an article
    • Post an idea
    • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Explore
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges