0 votes

I successfully call leaderboard by:

GooglePlay.play_games_services.showLeaderBoard(leaderboardID)

1) 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"))

2) 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!

Godot version 3.2.3
in Engine by (327 points)

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.