0

我開發了一款安卓遊戲。我在我的遊戲中使用了Google Play排行榜。 我的問題是排行榜分數不會顯示在應用程序中。排行榜界面出現,但說「沒有這個遊戲的排行榜」。用戶的分數沒有出現。Android Google Play排行榜

這是一種省比分

PendingResult<Leaderboards.LoadPlayerScoreResult> result = Games.Leaderboards.loadCurrentPlayerLeaderboardScore(getApiClient(),getString(R.string.number_guesses_leaderboard), LeaderboardVariant.TIME_SPAN_ALL_TIME, LeaderboardVariant.COLLECTION_PUBLIC); 
         result.setResultCallback(new ResultCallback<Leaderboards.LoadPlayerScoreResult>() { 
          @Override 
          public void onResult(Leaderboards.LoadPlayerScoreResult loadPlayerScoreResult) { 
           if(loadPlayerScoreResult != null && loadPlayerScoreResult.getScore() != null) { 
            Games.Leaderboards.submitScore(getApiClient(), getString(R.string.number_guesses_leaderboard), loadPlayerScoreResult.getScore().getRawScore() + value);} 
           else { 
           Games.Leaderboards.submitScore(getApiClient(), getString(R.string.number_guesses_leaderboard), value); } 
          }}); 

任何想法的代碼?我應該怎麼辦?

回答

相關問題