2011-04-27 1 views
1

나는 내 게임에 게임 센터를 통합했습니다 ... 잘 작동하지만 지금은 새로운 문제가 있습니다 : P 점수 하나만 제출됩니다. 다음 ... 내가 게임 센터를 사용할 수 있는지 확인 된 후 ...... 점수를 제출하려면이 옵션을 사용하여 내가 정확히 두에 무슨 어떤 생각 ... 감사 Haseeb게임 센터 점수 제출 문제

답변

1

을 점수 이하를 기록했다. ..

NSAutoreleasePool *pool = [[NSAutoreleasePool alloc]init]; 

    GKScore *scoreReporter = [[[GKScore alloc] initWithCategory:gameCenterCategory] autorelease]; 

    int64_t score1 =socre; 
    scoreReporter.value = score1; 
    [scoreReporter reportScoreWithCompletionHandler:^(NSError *error) { 
     if (error != nil) { 
      NSLog(@"Submit failed"); 
     } 
     else { 
      NSLog(@"Score Submited"); 
     } 
    }]; 

    [pool release]; 
+0

... 나는 게임 센터 설정에서 점수를 보여 worng 옵션을 선택한 .. 내가 가장 낮은 점수를 처음으로 표시하도록 선택되었습니다 .. 지금은 그 dat 옵션을 지금 잘 변경 .. u 남자에게 tahnx ... http://stackoverflow.com./questions/5803522/iphone-how-do-display-leader-screen-in-my-own-game-developed-cocos2d –

+0

예 ..... 리더 보드를 만들 때 옵션을 선택해야합니다. – Rony