Hi there,
I am working on a UWP Windows 10 app.
To prevent cheating, I look to count points, by adding a cloudscript.
So far it works (I see in the PlayScreen Monitor) but I am struggling with the handling of the result:
private static void StartCloudHelloWorld() { var test = PlayFabClientAPI.ExecuteCloudScript(new ExecuteCloudScriptRequest() { FunctionName = "ResetPlayerStats", FunctionParameter = new { high = 777 }, GeneratePlayStreamEvent = true, }); OnCloudHelloWorld(test.Result.Result); } public static void OnCloudHelloWorld(ExecuteCloudScript result) { string msg = (JsonWrapper.SerializeObject(result.FunctionResult)); JsonObject js = (JsonObject)result.FunctionResult; object mmV; js.TryGetValue("mmV", out mmV); } <br>
The first parts works, and I see the points are updated but when it come to
OnCloudHelloWorld(test.Result.Result) the app shuts down.
I fear there is something with my code, but don't see where.
Hopefully anyone can help me out.
Many thanks in advance,
Michael