SetPersistDataValues

GameSpy SDK

SetPersistDataValues

If you are saving data in key\value delimited format, you can use this function
to only set SOME of the key\value pairs. Only the key value pairs you include in
they keyvalues parameter will be updated, the other pairs will stay the same.

void SetPersistDataValues(
int localid,
int profileid,
persisttype_t type,
int index,
gsi_char * keyvalues,
PersDataSaveCallbackFn callback,
void * instance );
RoutineRequired HeaderDistribution
SetPersistDataValues<gpersist.h>SDKZIP

Parameters

localid
[in] Your game-specific reference number for this player
profileid
[in] The profileid of the player whose data you are setting.
type
[in] The type of persistent data you are setting. Only rw data is setable.
index
[in] Each profile can have multiple persistent data records associated with them. Usually 0 is used.
keyvalues
[in] The key/value pairs to be updated.
callback
[in] Will be called when the data save is complete.
instance
[in] Pointer that will be passed to the callback function (for your use.)

Remarks

The profileid for whom the data is being set MUST have been authenticated already.