naltradamus
started a topic on Fri, 05 June 2015 at 12:53 AM
Can you guys tell me what i am doing wrong here:
private void SavePlayerState()
{
Debug.Log ("Saving game.2");
// we need to save
// first save as a player property (poor man's save game)
Debug.Log ("Saving player data...");
UpdateUserDataRequest request = new UpdateUserDataRequest ();
request.PlayFabId = PlayFabClientAPI.AuthKey;
request.Data = new Dictionary<string, string> ();
request.Data.Add ("TotalXP", PlayFabGameBridge.totalXP.ToString ());
request.Permission = UserDataPermission.Public;
PlayFabServerAPI.UpdateUserData (request, PlayerDataSaved, OnPlayFabError);
// also save score as a stat for the leaderboard use...
Dictionary<string,int> stats = new Dictionary<string,int> ();
stats.Add("XP", PlayFabGameBridge.totalXP);
storeStats(stats);
totalXPOld = PlayFabGameBridge.totalXP;
}
i want to make it so that the client cant cheat so I want the server to post calls. I understand the documents you guys currently have up so far, im having a hard time making wrappers for unity to understand.