Hi, there!
I have a strange problem. I’m trying to retrieve top scores (top ten) from my leaderboard, but instead of top positions, I’m getting “centered” scores. As you can see, position = “top”, but scores are always centered around player’s score, that means that it is no possible to get the top scores. For example in a leaderboard we have 50 results, a player is placed at 25, so the code will provideds results from places #20 to #30, instead of #1-10. But the ‘position’ parameter is “top”! I’m confused:)
I’m using plugin.gpgs.v2. Here is my code:
gpgs.leaderboards.loadScores( { leaderboardId = "\*\*\*\*\*\*\*", position = "top", timeSpan = "all time", reload=true, limit=10, listener=function(event) DebugConsole("\*Scores\*") if not event.isError then for i=1,#event.scores do DebugConsole(event.scores[i].score) end end end })