Hey, I have been trying to accomplish to update a player title data through cloudscript where it just sets the State of the player. This is my cloudscript code, handlers.storeFriend = function (args, context) { var state = args.PlayerState; var playerStatResult = server.UpdateUserData({ PlayFabID : currentPlayerId, Data : {"State", state}}); }
Although while doing this I am getting the following issue, I am a beginner at cloud scripting so please pardon my mistakes. This is a real blocker right now, Any help would be appreciated. Thanks !
,Hey, this here is my following cloudscript,
handlers.storeFriend = function (args, context) {
var state = args.PlayerState;
var playerStatResult = server.UpdateUserData({PlayFabID : currentPlayerId,
Data : {"State", state}});
}
So in this above example I am trying to update the player title data with one single value for setting the player state. Although while saving I am getting the following issue, I might missing something basic but I am a beginner with Cloudscript so pardon my mistakes. Thanks!