Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Josh Kahane

macrumors 6502
Original poster
Aug 29, 2006
439
1
Suffolk, UK
Hi

I am using the following line to submit high scores to open feint for my game. However the parts in bold seem to be causing an issue:

Code:
[OFHighScoreService setHighScore: score forLeaderboard:@"8539293" onSuccess:OFDelegate ([B]self, @selector(_scoreSubmitted)[/B]) onFailure:OFDelegate ([B]self, @selector(_scoreSubmittedFail)[/B])];

This works fine:

Code:
[OFHighScoreService setHighScore: score forLeaderboard:@"8539293" onSuccess:OFDelegate () onFailure:OFDelegate ()];

But I want to have a UIAlert to show up saying either 'Successfully Submitted Score' or Failed to Submit Score' for example.

Any help would be much appreciated, thanks.
 
Just try putting in a ":" at the end of your function call.

Code:
[OFHighScoreService setHighScore: score forLeaderboard:@"8539293" onSuccess:OFDelegate (self, @selector(_scoreSubmitted:)) onFailure:OFDelegate (self, @selector(_scoreSubmittedFail:))];
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.