I was updating my game code to a new PlayFab version. Mainly replacing RunCloudScript with ExecuteCloudScript and encountered bizzare bug with return values.
Example cloudscript code:
handlers.TestReturn1 = function (args)
{
var message = "Hello " + currentPlayerId + "!";
return { messageValue: message };
}
It works alright. But when i do this -
handlers.TestReturn1 = function (args)
{
var message = "Hello " + currentPlayerId + "!";
return
{
messageValue: message
};
}
Suddenly FunctionResult returns null. What the hell? I have been sitting here for hours trying to figure out why my functions returning null. Thinking it was my fault with how i'm handling Arrays, but no.. its this minuscule thing.
I had replicated it few times.