Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | Suleymanov |
I successfully call leaderboard by:
GooglePlay.play_games_services.showLeaderBoard(leaderboardID)
- But I can’t get score from leaderboard to a variable. I failed trying both below:
var xp = GooglePlay.play_games_services.retrieveLeaderBoardScore(leaderboardID, "ALL_TIME", "ALL")
xp = int(GooglePlay.play_games_services.retrieveLeaderBoardScore("leaderboardID", "ALL_TIME", "ALL"))
- Also I can’t send data to leaderboard. I failed trying both below:
GooglePlay.play_games_services.submitLeaderBoardScore(leaderboardID, #value)
GooglePlay.play_games_services.submitLeaderBoardScore(leaderboardID, int(#value))
What am I doing wrong and what is the correct way in examples?
Thank you for your time!