Helene
started a topic on Sun, 19 July 2015 at 11:16 PM
I'm a bit confused about removing keys from player's data. I'm using c++ sdk. Documentation says that the null value should be assigned to a key for removal.
Here is the sample code:
std::string Key, Val;
Key = "testkey";
Val.assign(NULL);
PlayFab::ClientModels::UpdateUserDataRequest request;
request.Data.insert(std::pair<std::string, std::string>(Key, Val));
m_PlayFabClient.UpdateUserData(request, UpdateUserDataCB, UpdateUserDataErrorCB, this);
This code crashes (in xcode). How to set null string properly?