iOS Question Gamecenter - Leaderboard problem

tufanv

Expert
Licensed User
Longtime User
Hello,

I have no problems with displaying the leaderboard sending scores etc. I have a weird problem only. I have 2 test devices and I have 2 scores submitted with different accounts. So leaderboard has 2 entries. One device only shows my score when I list all scores but other device lists both scores. List all scores code :

B4X:
Sub toplarial
    If Game.LocalPlayer.Authenticated Then
        Dim sf As Object = Game.RequestScores("harf2")
        Wait For (sf) GameCenter_ScoresAvailable (Success As Boolean, Scores As List, PlayerScore As GKScore)
        If Success = False Then
            Log(LastException)
        Else
            LogColor(Scores,Colors.Green)
            Dim sayi As Int
            sayi=-1
            For Each score As GKScore In Scores
                LogColor(score.Player.Alias&score.Value,Colors.green)
                next
    End If
End Sub

how is this possible? Why do I see 1 score in 1 device and see 2 scores in the other device.
 

Computersmith64

Well-Known Member
Licensed User
Longtime User
I've seen this happen at times too, but it generally sorts itself out. I think it's just "one of those things" that happens sometimes with GameCenter.

- Colin.
 
Upvote 0
Top