Difference between revisions of "Gaming:reportScore"

From GiderosMobile
m (Text replacement - "</source>" to "</syntaxhighlight>")
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
'''Available since:''' Gideros 2012.09<br/>
+
<languages />
=== Description ===
+
'''<translate>Available since</translate>:''' Gideros 2012.09<br/>
Upload a score to a leaderboard.
+
'''<translate>Class</translate>:''' [[Special:MyLanguage/Gaming|Gaming]]<br/>
<source lang="lua">
+
=== <translate>Description</translate> ===
 +
<translate>Upload a score to a leaderboard.</translate>
 +
<syntaxhighlight lang="lua">
 
  Gaming:reportScore(leaderboardId,score,immediate)
 
  Gaming:reportScore(leaderboardId,score,immediate)
</source>
+
</syntaxhighlight>
'''leaderboardId''': (string) Leaderboard Id ''''''<br/>
+
=== <translate>Parameters</translate> ===
'''score''': (number) Score ''''''<br/>
+
'''leaderboardId''': (string) <translate>Leaderboard Id</translate> <br/>
'''immediate''': (boolean) Push the update immediately ''''''<br/>
+
'''score''': (number) <translate>Score</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