Using Get Rivals

32 views
Skip to first unread message

Sam Wronski

unread,
Jun 21, 2012, 3:14:56 PM6/21/12
to moga...@googlegroups.com
I am trying to use GetRivals to get the nearby players by the current Player. However, instead of returning the Player's immediately above the current one it is returning the top Player's, and then only 3 of them.

My code looks like this:

MogadeController.Mogade.GetRivals(MogadeController.HighscoreTable, LeaderboardScope.Overall, MogadeController.Username, SetRivals); //To get Rivals

and then:

public static void SetRivals(Response<IList<Score>> results) //To save rivals to a list
{
if (!results.Success)
rivalFailed = true;
else
{
rivalFailed = false;
foreach (Score score in results.Data)
{
rivalScores.Add(score);
}
}
}

What am I doing wrong to get this. Does GetRivals only return players from different devices? As I am using the Emulator for testing that would cause this to occur.

If you have any other suggestions that would be appreciated as I am at a complete loss.

Karl Seguin

unread,
Jun 21, 2012, 9:42:27 PM6/21/12
to moga...@googlegroups.com
Sorry about that, if you check it out now, you should be getting the expected results.

Karl

Sam Wronski

unread,
Jun 22, 2012, 1:20:15 AM6/22/12
to moga...@googlegroups.com
Thanks, it is working fine now. Appreciate the quick fix.
Reply all
Reply to author
Forward
0 new messages