Sign In Register

How can we help you today?

Start a new topic

Leaderboard data request.

Hi,

I'm attempting to get 100+ entries from a leaderboard (should only contain 6-7):

        new GameSparks.Api.Requests.LeaderboardDataRequest()
            .SetLeaderboardShortCode("SCORE_LEADERBOARD").SetEntryCount(100).Send((response) =>
        {
            if (!response.HasErrors)
            {
                GSEnumerable<GameSparks.Api.Responses.LeaderboardDataResponse._LeaderboardData>
                adsa = response.Data;

                foreach (GameSparks.Api.Responses.LeaderboardDataResponse._LeaderboardData entry in response.Data)
                {
                    int rank = (int)entry.Rank;
                    string playerName = entry.UserName;
                    string score = entry.JSONData["SCORE"].ToString();
                    Debug.Log("Rank:" + rank + " Name:" + playerName + " \n Score:" + score);
                }
            }
            else
            {
                Debug.Log("Error Retrieving Leaderboard Data...");
            }
        });

However, the data I get back only contains 4 entries. Why is this please?

Thanks.

 

Login to post a comment