Open Feint High Score Help

Discussion in 'iOS Programming' started by Josh Kahane, Jul 1, 2010.

  1. Josh Kahane macrumors 6502

    Joined:
    Aug 29, 2006
    Location:
    Suffolk, UK
    #1
    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.
     
  2. bweberapps macrumors member

    Joined:
    Jun 25, 2010
    #2
    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:))];
     

Share This Page