question

Daniel Wynne avatar image
Daniel Wynne asked

Leaderboard not updating after UpdatePlayerStatistics

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.

Daniel Wynne avatar image Daniel Wynne commented ·

(accidentally submitted post and I can't seem to edit so here it is)

I run an UpdatePlayerStatistics

then a GetPlayerStatistics which works successfully returns the new statistic from the previous Update call

once that's done, I run a GetLeaderboard and it does not come back with the correct score

any ideas how to fix this issue? Thank you

0 Likes 0 ·

1 Answer

·
Hernando avatar image
Hernando answered

Does the StatValue still return the previous statistic for now? It should complete the processing in a few seconds after the update.

Have you tried to wait for a few seconds after UpdatePlayerStatistics before calling GetLeaderboard(). You can use the "Invoke" method to make a short delay to give it time to complete update processing .

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.

Daniel Wynne avatar image Daniel Wynne commented ·

Thanks I was able to solve the issue by waiting briefly

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.