Difference between revisions of "Gaming:reportScore"

From GiderosMobile
m (Text replacement - "</source>" to "</syntaxhighlight>")
 
(2 intermediate revisions by 2 users not shown)
Line 5: Line 5:
 
=== <translate>Description</translate> ===
 
=== <translate>Description</translate> ===
 
<translate>Upload a score to a leaderboard.</translate>
 
<translate>Upload a score to a leaderboard.</translate>
<source lang="lua">
+
<syntaxhighlight lang="lua">
 
  Gaming:reportScore(leaderboardId,score,immediate)
 
  Gaming:reportScore(leaderboardId,score,immediate)
</source>
+
</syntaxhighlight>
 
=== <translate>Parameters</translate> ===
 
=== <translate>Parameters</translate> ===
 
'''leaderboardId''': (string) <translate>Leaderboard Id</translate> <br/>
 
'''leaderboardId''': (string) <translate>Leaderboard Id</translate> <br/>
 
'''score''': (number) <translate>Score</translate> <br/>
 
'''score''': (number) <translate>Score</translate> <br/>
 
'''immediate''': (boolean) <translate>Push the update immediately</translate> <br/>
 
'''immediate''': (boolean) <translate>Push the update immediately</translate> <br/>
 +
 +
{{Gaming}}

Latest revision as of 14:29, 13 July 2023


Available since: Gideros 2012.09
Class: Gaming

Description

Upload a score to a leaderboard.

 Gaming:reportScore(leaderboardId,score,immediate)

Parameters

leaderboardId: (string) Leaderboard Id
score: (number) Score
immediate: (boolean) Push the update immediately