question

Riccardo Iengo avatar image
Riccardo Iengo asked

More stats in a single row UE4

Hi,

I posted this many times since I got ne real answer. I'm sorry that I have to write again but I can't find ANY documentation about UE4/Playfab.

Is it possible to call more stats for each row in Get Leaderboard API? Appartently yes, but.

I would like to show something like that:

3 - Name - Time - Score - Faults - Medal

My problem is that I have a lot of stats and I can't get the one that I need from the Statistics array. I could get it by index but I don't think it's the right way to go, can someone tell me how could I get the stats that I need by string or whatever? Thanks for your help again

stats.png (98.2 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

·
Citrus Yan avatar image
Citrus Yan answered

I am afraid you'd need to get it by index since the statistics are returned as an array: https://docs.microsoft.com/en-us/rest/api/playfab/client/player-data-management/getleaderboard?view=playfab-rest#playerprofilemodel. Therefore, you could write a function that iterates the array and get the statistics you want to show to the players.

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.