Hello, my game is sending the value(which is not 0) to my leaderboard but the player's value is always 0. How can I fix this problem?
Hello, my game is sending the value(which is not 0) to my leaderboard but the player's value is always 0. How can I fix this problem?
public void SendLeaderboard(int score) { var request = new UpdatePlayerStatisticsRequest { Statistics = new List<StatisticUpdate> { new StatisticUpdate { StatisticName = "NewLeaderboard", Value = score } } }; PlayFabClientAPI.UpdatePlayerStatistics(request, OnLeaderboardUpdate, OnError); } void OnLeaderboardUpdate(UpdatePlayerStatisticsResult result) { Debug.Log("Successfull leaderboard sent"); }
I'm allowing client to post player statistics. I can't change Value but can change Name. I don't get any errors on Unity but I get a yellow warning message "UnityWebRequest.isHttpError is deprecated." on PlayFabEditorHttp.cs in Visual Studio Code. @Xiao Zha
14 People are following this question.