Is there a way to do this?
Currently I do something like this:
[av setTitle:@"Leaderboard Entry Processed"];
if ([sender scoreDidUpdate])
{
[av setMessage:[NSString stringWithFormat:@"%@'s local leaderboard high score of %@ was added to the world leaderboard. This score is ranked #%@ in the world.", [pEntry objectForKey:@"cc_playername"], [[[GameData instance] pNumberFormatter] stringFromNumber:[pEntry objectForKey:@"cc_score"]], [[[GameData instance] pNumberFormatter] stringFromNumber:[NSNumber numberWithUnsignedInt:[sender ranking]]]]];
}
else
{
[av setMessage:[NSString stringWithFormat:@"%@'s existing world leaderboard high score was not changed. His/her existing high score of %@ is ranked #%@ in the world.", [pEntry objectForKey:@"cc_playername"], [[[GameData instance] pNumberFormatter] stringFromNumber:[pEntry objectForKey:@"cc_score"]], [[[GameData instance] pNumberFormatter] stringFromNumber:[NSNumber numberWithUnsignedInt:[sender ranking]]]]];
}
[av addButtonWithTitle:@"OK"];
[av show];
This does not work for the second case though, as it's really just displaying the details about the score I attempted to post. Since I always try to post the score that's highest in my local leaderboard, I thought this was working initially. However, if I clear local leaderboards, and then submit a new #1 local score later for the same player, and it fails to update (the existing one is higher), I can't give them nice info. about the existing world leaderboard high score (instead I am putting up info about the score I tried to post with updateScore, which wasn't even accepted). It would be really nice to be able to get at the existing score/rank in this case so the player knows what they need to shoot for to beat their last high score. Tips?
Thanks.