Hi !
I am here pleasing your help because I discovered how to send scores to OpenFeint but I don't know how to get the best high score from my leaderboard into a NSString. Thank you for telling me how. :)
A fast, easy to use, free, and community supported 2D game engine
Hi !
I am here pleasing your help because I discovered how to send scores to OpenFeint but I don't know how to get the best high score from my leaderboard into a NSString. Thank you for telling me how. :)
I'm almost positive you can get the answer (with sample code) at the OpenFeint forums.
I posted a new topic in their forums but they didn't answer. :(
Here's the link: http://lmgtfy.com/?q=openfeint+high+scores
:)
I understand decreasing people can be gratifying for some people who have a pathetic life but your post is not really helpful, while the purpose of a forum is to be helpful. I searched a lot before posting this message in this forum and if I did it it's because I found nothing interesting.
I found something like : [OFLeaderboard highScoreForCurrentUser] but I don't know how to convert it to a int and XCode tells me that highScoreForCurrentUser is not a method found by OFLeaderBoard.
read this page http://www.openfeint.com/ofdeveloper/index.php/kb/article/000028
for only your own highest score you would use:
highscores = [(OFTableSectionDescription*)[page objectAtIndex:0] page].objects;
and you can access the score int64_t with:
for (OFHighScore* scoreRecord in highscores)
{
scoreRecord.score
}
Thanks a lot for this fast reply :-) But I regrettably got one more problem : Xcode tells me that
'page' was not declared in this scopeAny ideas to get this error fixed ?
Thanks in advance :-)
- (void)_scoresDownloaded:(OFPaginatedSeries*)page
There is the definition of page???
Well I don't understand but I really appreciate your help and time ! Thanks a lot ! Could you please put the right code to create a int value containing the high score of the user playing the game ?
You must log in to post.