leaderboardsRequestUploadScoreKeepBest: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\|x([0-9])= <sqf>([^\/: ]+)([^;])<\/sqf>" to "|x$1= <sqf>$2$3;</sqf>")
m (Text replacement - "\] +\[" to "] [")
 
(2 intermediate revisions by 2 users not shown)
Line 6: Line 6:
|gr1= Leaderboards
|gr1= Leaderboards


|descr= Starts async. operation to upload score to board with given name, value is only stored to board if it is better than one already in the board. The details array is optional. The board has to be initialized before the call.
|descr= Starts async. operation to upload score to board with given name, value is only stored to board if it is better than one already in the board. The board has to be initialised before the call.


|s1= [[leaderboardsRequestUploadScoreKeepBest]] [boardName, score, details]
|s1= [[leaderboardsRequestUploadScoreKeepBest]] [boardName, score, details]


|p1= boardname: [[String]]
|p1= boardName: [[String]]


|p2= score: [[Number]]
|p2= score: [[Number]]


|p3= details: [[Array]] (optional) - Array of [[Number|numbers]]
|p3= details: [[Array]] of [[Number]]s (Optional)


|r1= [[Boolean]]
|r1= [[Boolean]]

Latest revision as of 11:46, 5 May 2024

Hover & click on the images for description

Description

Description:
Starts async. operation to upload score to board with given name, value is only stored to board if it is better than one already in the board. The board has to be initialised before the call.
Groups:
Leaderboards

Syntax

Syntax:
leaderboardsRequestUploadScoreKeepBest [boardName, score, details]
Parameters:
boardName: String
score: Number
details: Array of Numbers (Optional)
Return Value:
Boolean

Examples

Example 1:
leaderboardsRequestUploadScoreKeepBest ["TT01", 1234, [5,6,7,8]];

Additional Information

See also:
leaderboardsRequestUploadScore

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note