Google Play服务-页首横幅最高得分21,474,836.47 $

时间:2018-10-21 11:32:26

标签: ionic-framework ionic3 google-play-services leaderboard

我正在使用Ionic 3制作我的应用“ QuickLife”。

被推到排行榜的一件事是用户赚了多少钱,即使我向Google Services投入了5000万美元,出现的最大数目也是21,474,836.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 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
            });
        });
}

First 4 players have same net worth that is impossible to be same even in decimal point

1 个答案:

答案 0 :(得分:3)

这是一个有符号整数(2 ^ 31-1)的最大值。 MySQL table of INT size https://dev.mysql.com/doc/refman/8.0/en/integer-types.html