Answer the question
In order to leave comments, you need to log in
Why is the Google Play leaderboard score displayed in the wrong format?
I have a small but annoying problem with the Google Play leaderboard in an Android game and I can't figure out how to fix it.
The score in the table should be shown in time format (like this: "1:5:23"), but it is shown as a fractional number (like this: "13.6").
The time format is specified in the table settings in the developer console.
In the code, I save to the long table in the form of milliseconds.
Social.ReportScore((long)MainController.bestScore.TotalMilliseconds, "CgkI-6CcmbMMEAIQAA", (bool success) => {
scoreSavedInGPS = success;
});
Answer the question
In order to leave comments, you need to log in
The score in the table should be shown in time format , but it is shown as a fractional number ( seconds.milliseconds ).
Before that, I checked the account with a time of less than a minute. Now I checked the account for more than a minute and it looks like this: "minutes: seconds, milliseconds". It turns out a little strange, but tolerable. Can someone tell me how to do it normally, so I will not close the question yet.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question