Hi, I'm having some trouble with Game Center.
So far I have 2 buttons, one launches the Leaderboards UI, and one for Achievments UI, and are both working fine, I can see the Leaderboard with No Scores, and can see all the Unlocked Achivements that I already have setup in iTunesConnect.
Problem is I cant seem to update the leaderboards, or Unlock Achievements.
I'm using the ChikenCoup code to unlock an achivement:
myAchievement_ID is an integer with values from (1-10) depending on the achivement I want unlocked.Code:if (OnlineSub != none && OnlineSub.PlayerInterface != none) { OnlineSub.PlayerInterface.UnlockAchievement(0, myAchievement_ID); }
Not sure where the problem is here.
and to post my leaderboard score:
I think the problem is in if (PlayerReplicationInfo.UniqueId != zeroID) ,its never trueCode:if (PlayerReplicationInfo.UniqueId != zeroID) { WorldInfo.Game.Broadcast(self, "Saving Stat"); leaderboardWrite.SetIntStat(class'PuzzLeaderboardWrite'.const.BananaScore, Score); OnlineSub.StatsInterface.WriteOnlineStats('Game', PlayerReplicationInfo.UniqueId, leaderboardWrite); }
any help would be appreciated.
thanks.



Reply With Quote




Bookmarks