Hello, I have read many answers to this question, but I am too big a noob to understand these answers. I would like PlayerA to be able to change PlayerB's PlayerData (Title). I always read the answer "UpdateUserData". However, I don't know exactly how to use this command to make it work. I have: PlayFabClientAPI.UpdateUserData (new UpdateUserDataRequest () { Data = new Dictionary <string, string> () { {"Name", data}, }, Permission = UserDataPermission.Public }, SendMessageSuccess, OnErrorLeaderboard);
With this I can change the data of the player myself, but not of another player. To do that I think I have to insert the PlayerId of the other player somewhere. I just don't know where.
I have written:
PlayFabClientAPI.UpdateUserData (new UpdateUserDataRequest () { PlayFabId = OtherPLayerId, Data = new Dictionary <string, string> () { {"Name", data}, }, Permission = UserDataPermission.Public }, SendMessageSuccess, OnErrorLeaderboard);
But there I only get the error message: 'UpdateUserDataRequest' does not contain a definition for 'PlayFabId'
Please help!