Type Table Library gamecircle.* Revision Release 2022.3683 Keywords achievement, return, value, table
Table that encapulates the error values and return value from the GetLocalPlayerScore function.
local leaderboardId = "myFirstLeaderboard" local gamecircle = require("plugin.gamecircle") gamecircle.Init(false, true, false) function LeaderboardCallback(returnValue) if returnValue.isError == true then print("Get Scores request returned with error message: " .. returnValue.errorMessage) else print("Score information recieved for Leaderboard!") print("The local player is rank " .. returnValue.rank .. " with a score of " .. returnValue.score .. ".") end end gamecircle.Leaderboard.GetLocalPlayerScore(leaderboardId, "GLOBAL_WEEK", LeaderboardCallback)