leaderboardsRequestUploadScoreKeepBest: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (template:command argument fix)
m (Text replacement - "\] +\[" to "] [")
 
(32 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{RV|type=command
____________________________________________________________________________________________


| arma3 |= Game name
|game1= arma3
|version1= 1.42


|1.42|= Game version
|gr1= Leaderboards
____________________________________________________________________________________________


| Starts async. operation to upload score to board with given name, value is only stored to board if it's better than one already in the board. The details array is optional. The board has to be initialized before the call. |= Description
|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.
____________________________________________________________________________________________


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


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


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


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


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


|x1= <sqf>leaderboardsRequestUploadScoreKeepBest ["TT01", 1234, [5,6,7,8]];</sqf>


|x1= <code>[[leaderboardsRequestUploadScoreKeepBest]] ["TT01", 1234, [5,6,7,8]]</code>|EXAMPLE1=
|seealso= [[leaderboardsRequestUploadScore]]
 
____________________________________________________________________________________________
 
|  |SEEALSO=
 
|  |MPBEHAVIOUR=
____________________________________________________________________________________________
}}
}}
<h3 style='display:none'>Notes</h3>
<dl class='command_description'>
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style='display:none'>Bottom Section</h3>
[[Category:ArmA 2: New Scripting Commands List|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]

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