question

kendrickvillaruel avatar image
kendrickvillaruel asked

How to get data from GetPlayerCombinedInfo cloud script

Hi,

For testing purposes, I wanted to return DisplayName from a GetPlayerCombinedInfo result. But I cannot, please let me know how?

Thank you.

CloudScript
cloud.png (8.8 KiB)
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

·
kendrickvillaruel avatar image
kendrickvillaruel answered

Fixed this now. :D Please let me know if I got it correct

 var testResult = server.GetPlayerCombinedInfo(req);
    return JSON.stringify( testResult.InfoResultPayload.PlayerProfile.DisplayName);
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.