# GPGS Leaderboard scores are "centered" instead of "top"

**URL:** <https://forums.solar2d.com/t/gpgs-leaderboard-scores-are-centered-instead-of-top/151129>\
**Category:** Game Networking\
**Created:** [February 5, 2020, 5:02pm UTC](https://forums.solar2d.com/t/gpgs-leaderboard-scores-are-centered-instead-of-top/151129 "2020-02-05T17:02:00Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![info142](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/i/c68b51/32.png) [@info142](https://forums.solar2d.com/u/info142)\
**Post date:** [February 5, 2020, 5:02pm UTC](https://forums.solar2d.com/t/gpgs-leaderboard-scores-are-centered-instead-of-top/151129/1 "2020-02-05T17:02:00Z")

</div>

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 })
```

---

<div class="post-metadata">

**Author:** ![info142](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/i/c68b51/32.png) [@info142](https://forums.solar2d.com/u/info142)\
**Post date:** [February 6, 2020, 6:41pm UTC](https://forums.solar2d.com/t/gpgs-leaderboard-scores-are-centered-instead-of-top/151129/2 "2020-02-06T18:41:22Z")

</div>

My tests have shown that&nbsp; **position**** = ****“top”** and&nbsp; **position = “centered”** &nbsp;(as well using a default value) provide the same results. It seems that parameter **position** is not relevant anymore in that sence (but&nbsp; **position = “single”** works properly). So it is impossible to get a top score. So these examples work the same (but they should not), all of them loads a ‘centered’ score, not the top one.

```
-- Example A gpgs.leaderboards.loadScores( { leaderboardId = "\*\*\*\*\*\*\*", position = "top", listener=loadListener }) -- Example B gpgs.leaderboards.loadScores( { leaderboardId = "\*\*\*\*\*\*\*", position = "centered", listener=loadListener }) -- Example C gpgs.leaderboards.loadScores( { leaderboardId = "\*\*\*\*\*\*\*", listener=loadListener })
```

---

<div class="post-metadata">

**Author:** ![info142](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/i/c68b51/32.png) [@info142](https://forums.solar2d.com/u/info142)\
**Post date:** [February 7, 2020, 6:28pm UTC](https://forums.solar2d.com/t/gpgs-leaderboard-scores-are-centered-instead-of-top/151129/3 "2020-02-07T18:28:31Z")

</div>

Have anyone experienced the same problem? Is there no way to get a top score from a leaderboard based on Google Play Game Services in Corona? Why does the position parameter not work?

---

<div class="post-metadata">

**Author:** ![santiagojrodriguez](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/s/977dab/32.png) [@santiagojrodriguez](https://forums.solar2d.com/u/santiagojrodriguez)\
**Post date:** [March 13, 2020, 3:19pm UTC](https://forums.solar2d.com/t/gpgs-leaderboard-scores-are-centered-instead-of-top/151129/4 "2020-03-13T15:19:57Z")

</div>

Hi! I’m having the exact same issue.

---

<div class="post-metadata">

**Author:** ![santiagojrodriguez](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/s/977dab/32.png) [@santiagojrodriguez](https://forums.solar2d.com/u/santiagojrodriguez)\
**Post date:** [March 13, 2020, 3:19pm UTC](https://forums.solar2d.com/t/gpgs-leaderboard-scores-are-centered-instead-of-top/151129/5 "2020-03-13T15:19:57Z")

</div>

Hi! I’m having the exact same issue.
