Hello,
We currently have a friends & world leaderboard. But i am wondering if we also can do this on country level.
if i am right it is something to do with:
Saving:
sp = AppConstant.GetServce();
scoreService = AppConstant.GetScoreService(sp);
App42API.SetDbName("PLAYERS");
Dictionary<string, object> jsonDoc = new Dictionary<string, object> ();
jsonDoc.Add("country",FBprofile["country"].ToString());
scoreService.AddJSONObject("country", jsonDoc);
scoreService.SaveUserScore(AppConstant.GameName, fbusername, Convert.ToDouble(score), this);
Loading:
sp = AppConstant.GetServce();
scoreService = AppConstant.GetScoreService(sp);
Query query = QueryBuilder.Build("country", FBprofile["country"], Operator.EQUALS);
App42API.SetDbName("PLAYERS");
scoreService.SetQuery("country", query);
scoreService.GetTopNRankers(AppConstant.GameName, 20,this);
But for some reason it shows all highscores, i checked the database it saves the country in the database. So the saving part goes good but the loading part doesnt work at the moment.
Thanks for your time.
With kind regards,
Vasco Rouw