Gaming:loadPlayerCenteredScores: Difference between revisions

From GiderosMobile
No edit summary
m Text replacement - "<source" to "<syntaxhighlight"
Line 5: Line 5:
=== <translate>Description</translate> ===
=== <translate>Description</translate> ===
<translate>Fetch player leaderboard entries. Either [[Special:MyLanguage/Event.PLAYER_SCORE_COMPLETE|Event.PLAYER_SCORE_COMPLETE]] or [[Special:MyLanguage/Event.PLAYER_SCORE_ERROR|Event.PLAYER_SCORE_ERROR]] will be triggered.</translate>
<translate>Fetch player leaderboard entries. Either [[Special:MyLanguage/Event.PLAYER_SCORE_COMPLETE|Event.PLAYER_SCORE_COMPLETE]] or [[Special:MyLanguage/Event.PLAYER_SCORE_ERROR|Event.PLAYER_SCORE_ERROR]] will be triggered.</translate>
<source lang="lua">
<syntaxhighlight lang="lua">
  Gaming:loadPlayerCenteredScores(leaderboardId,timeSpan,collection,maxEntries)
  Gaming:loadPlayerCenteredScores(leaderboardId,timeSpan,collection,maxEntries)
</source>
</source>

Revision as of 13:28, 13 July 2023


Available since: Gideros 2012.09
Class: Gaming

Description

Fetch player leaderboard entries. Either Event.PLAYER_SCORE_COMPLETE or Event.PLAYER_SCORE_ERROR will be triggered. <syntaxhighlight lang="lua">

Gaming:loadPlayerCenteredScores(leaderboardId,timeSpan,collection,maxEntries)

</source>

Parameters

leaderboardId: (string) Leaderboard Id
timeSpan: (number) Time range: Gaming.TODAY, Gaming.WEEK or Gaming.ALL_TIME optional
collection: (number) Player range: Gaming.FRIENDS or Gaming.ALL_PLAYERS optional
maxEntries: (number) Maximum number of entries to return optional