Ionic framework 谷歌游戏服务-排行榜最高得分21474836.47$
我正在使用离子3制作我的应用程序QuickLife 被推上排行榜的一个因素是用户挣钱的多少,即使我把5000万美元推到谷歌服务上,出现的最大数字也是21474836.47$Ionic framework 谷歌游戏服务-排行榜最高得分21474836.47$,ionic-framework,ionic3,google-play-services,leaderboard,Ionic Framework,Ionic3,Google Play Services,Leaderboard,我正在使用离子3制作我的应用程序QuickLife 被推上排行榜的一个因素是用户挣钱的多少,即使我把5000万美元推到谷歌服务上,出现的最大数字也是21474836.47$ googlePlaySubmitScore(data) { let age = data.age; // net Worth is money that is pushed, it is multiplied by 100 and Google will use that last two character
googlePlaySubmitScore(data) {
let age = data.age;
// net Worth is money that is pushed, it is multiplied by 100 and Google will use that last two characters for decimal point
let netWorth = data.netWorth * 100;
let followers = data.numOfSocialFans;
this.googlePlayGamesServices.isSignedIn()
.then(() => {
this.googlePlayGamesServices.submitScore({
score: netWorth,
leaderboardId: ID
});
this.googlePlayGamesServices.submitScore({
score: age,
leaderboardId: ID
});
this.googlePlayGamesServices.submitScore({
score: followers,
leaderboardId: ID
});
});
}
这是有符号整数(2^31-1)的最大值。
这是有符号整数(2^31-1)的最大值。