Notifications
Clear all

leaderboard => localUserSocre not work.

6 Posts
2 Users
0 Likes
646 Views
(@mininox)
Posts: 17
Eminent Member
Topic starter
 

1. leaderboard.loadsocres => 

result text = {"total":1,"results":[{"Id":"1","IdLeaderboard":"1","Rank":1,"User":"{"Id":"1","Username":"1485200568474290","GUID":"5685081163c679.34684565","LastLoginDate":null,"LastLoginIp":null,"Email":"","ActivationCode":"","ChangePwdCode":null,"Enabled":"1","LastSeen":"2015-12-31 19:48:49","CustomData":[],"Platforms":[]}","Score":"5997"}],"pages":1}

 

user only one (me).

 

Hashtable localScoreData = (Hashtable)result["localScore"];

"localscore" key does not exist.

 

2. Can not you overwrite the score? Currently, the addition.

    my current score 1000.       score.ReportScore ("1",0,user,999); => my score 1999.

    This is not so, my score 999.

 

   

 
Posted : 31/12/2015 2:04 pm
(@skaredcreations)
Posts: 805
Prominent Member Admin
 

To load the scores of a leaderboard:

Leaderboard.Load("1", (Leaderboard board, string errorBoard) => {
   board.LoadScores((bool loaded) => {
      if (loaded)
         Debug.Log(board.scores.Length);
   });
});

To overwrite the same score for each player you must set the leaderboard's Score Type to Replace the same score per user.

FRANCESCO CROCETTI @ SKARED CREATIONS

 
Posted : 31/12/2015 6:50 pm
(@mininox)
Posts: 17
Eminent Member
Topic starter
 

Happy new year.

 

Answer thank you.

 

Leaderboard.Load => Leaderboard.LoadScores => Leaderboard.localUserScore is always Null.

 

Everything else is fine.

 
Posted : 01/01/2016 5:50 am
(@skaredcreations)
Posts: 805
Prominent Member Admin
 

Happy new year too!

You're right, I forgot to initialize this member so I implemented it now, please download the version 2.1.5 from your Purchase History.

FRANCESCO CROCETTI @ SKARED CREATIONS

 
Posted : 02/01/2016 1:23 am
(@mininox)
Posts: 17
Eminent Member
Topic starter
 

Hello. 

 

Thank you. Update to Perfect.

 

There is one question.

 

When version update. In general, except for the 'config.php' file and overwrite all ?

 
Posted : 02/01/2016 4:36 am
(@skaredcreations)
Posts: 805
Prominent Member Admin
 

Yes, you can safely replace all web files except config.php (and eventually the add-on a folder, if you have/create addon). About the database I explicitly say in the news update if there's something to change and eventually the SQL file to execute, but there's no change in db for this.

FRANCESCO CROCETTI @ SKARED CREATIONS

 
Posted : 02/01/2016 11:22 am
Share: