question

Talha avatar image
Talha asked

What am i Doing Wrong? GetPlayerCombinedInfo CloudScript

Help Needed!

In cloudscript I need to call GetPlayerCombinedInfo function to get some Values but In return I get nothing, Its blank empty. There is no issue on the client side.

In Client Profile Options "avatar url, locations and DisplayName is checked".

var GetPlayerCombinedInfoRequest = {
        PlayFabId: certainPlayfabID,
        InfoRequestParameters: {
        	GetUserAccountInfo: true,
            GetPlayerStatistics :true,
        	GetPlayerProfile: true
        }
    };
    var MyAccountInformation = server.GetPlayerCombinedInfo(GetPlayerCombinedInfoRequest);
       
     
       
       
    var Name= MyAccountInformation.PlayerProfile.DisplayName;

 var AvatarUrlOFMy=MyAccountInformation.PlayerProfile.DisplayName;
   
   var CertainData= {
       
       NameOF:Name,
        AvatarUrlOF:AvatarUrlOFMy
  };
   
   return CertainData; 
CloudScript
1 comment
10 |1200

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

Talha avatar image Talha commented ·
line 16 is actually: var AvatarUrlOFMy=MyAccountInformation.PlayerProfile.AvatarUrl;
0 Likes 0 ·

1 Answer

·
Talha avatar image
Talha answered
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.