question

jilm10001@gmail.com avatar image
jilm10001@gmail.com asked

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!

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

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


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.

jilm10001@gmail.com avatar image jilm10001@gmail.com commented ·

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

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

0 Likes 0 ·
JayZuo avatar image JayZuo ♦ jilm10001@gmail.com commented ·

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?

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.

Error rendering WebPanel (widgets/consolidation-widget.ftl): org.hibernate.hql.internal.ast.QuerySyntaxException: AvailableConsolidation is not mapped [from AvailableConsolidation up where up.node = :node]