WOWCube Docs logo
WOWCube Docs
Mission Control
Section Shortcuts
APIExamplesSourceWOWConnectChangelog
Filters
SDK and language defaults persist in cookies.
SDK version
Navigation Tree
Collapsed by default, focused on the active path.
Made byMcKay Seamons
GitHub
  1. Home
  2. Docs
  3. Source
  4. leaderboard.inc
Mission NodeSDK 6.1Pawnleaderboard.inc

leaderboard.inc

SDK Source File: leaderboard.inc

Source / SDK 6.1 / Pawn / Core

leaderboard.inc

leaderboard.inc
CPP
1/****s* PawnLibs/leaderboard/LB_INFO
2 * Summary
3 * Array with named fields with various leaderboard information.
4 * Synopsis
5 */
6#define LB_INFO [.leadCount, .selfPosition, .selfScore, .wholeUserListCount]
7/*
8 * Description
9 * Fields:
10 * * leadCount - how many best results there are available to display
11 * * selfPosition - place which current user takes
12 * * selfScore - current users score
13 * * wholeUserListCount - total users count
14 * See also
15 * * LB_getInfo()
16 * History
17 * * v5.0 - added
18 ******/
19
20/*****n* PawnLibs/leaderboard/LB_getInfo
21 * Summary
22 * Get leaderboard description.
23 * Synopsis
24 */
25native LB_getInfo(info[LB_INFO]);
26/*
27 * Description
28 * Players score and achievements can be saved and shared via mobile
29 * application and WOWCube Entertainment System servers. This function
30 * provides synced information necessary to display points table.
31 * Outputs
32 * * info - structure describing leaderboard
33 * Return value
34 * Error code:
35 * * 0 - success
36 * * -1 - incorrect arguments count
37 * * -2 - leaderboard is not synced
38 * * -3 - fail to fill output structure
39 * See also
40 * * LB_INFO
41 * * LB_getScore()
42 ******/
43
44/*****n* PawnLibs/leaderboard/LB_getScore
45 * Summary
46 * Get best results data data.
47 * Synopsis
48 */
49native LB_getScore(leadTableBin[], size = sizeof(leadTableBin));
50/*
51 * Description
52 * Players score and achievements can be saved and shared via mobile
53 * application and WOWCube Entertainment System servers. This function
54 * provides best results table data.
55 * Inputs
56 * * size - how many results to get
57 * Outputs
58 * * leadTableBin - TBD, should be structure with name and score
59 * Return value
60 * Error code:
61 * * 0 - success
62 * * -1 - incorrect arguments count
63 * * -2 - leaderboard is not synced
64 * * -3 - fail to fill output structure
65 * See also
66 * * LB_getInfo()
67 * History
68 * * v5.0 - align error codes with LB_getInfo.
69 ******/
70
71
Wrapped for easier reading. Turn wrap off to inspect exact line lengths.
Context Rail

Related nodes

fixed.inc
Source / SDK 6.1 / Pawn / Core
graphics.inc
Source / SDK 6.1 / Pawn / Core
log.inc
Source / SDK 6.1 / Pawn / Core
math.inc
Source / SDK 6.1 / Pawn / Core
Previous Node
graphics.inc
Source / SDK 6.1 / Pawn / Core
Next Node
log.inc
Source / SDK 6.1 / Pawn / Core