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!
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.
I checked those items, but when the leaderboard returned, I didn't receive them.
I can get them other function "getPlayerAdvanceInfos" with params IDUser.
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?