Question from a developer:
In Cloud Script, I'm trying to retrieve the current player's leaderboard position. This is what I'm calling in Cloud Script:
var leaderboardPosition = server.GetLeaderboardAroundUser({
PlayFabId: currentPlayerId,
StatisticName: "Trophies",
MaxResultsCount : 1
});
log.debug("leaderboardPosition Position:");
log.debug(leaderboardPosition.Position);
Though the returned log data is null. Where am I going wrong?