EOS_Sanctions_CopyPlayerSanctionByIndex

EOS API reference page for EOS_Sanctions_CopyPlayerSanctionByIndex

2 mins to read

This function is part of the Sanctions Interface.

Remarks

Copies an active player sanction. You must call QueryActivePlayerSanctions first to retrieve the data from the service backend. On success, EOS_Sanctions_PlayerSanction_Release must be called on OutSanction to free memory.

Return Value

  • EOS_Success if the information is available and passed out in OutSanction

  • EOS_InvalidParameters if you pass a null pointer for the out parameter

  • EOS_NotFound if the player achievement is not found

See Also

EOS_Sanctions_QueryActivePlayerSanctions, EOS_Sanctions_PlayerSanction_Release

Parameters

EOS_Sanctions_CopyPlayerSanctionByIndex

Parameter Type And NameUsage Information
EOS_HSanctions Handle
const EOS_Sanctions_CopyPlayerSanctionByIndexOptions* OptionsStructure containing the input parameters
EOS_Sanctions_PlayerSanction** OutSanctionThe player sanction data for the given index, if it exists and is valid

If successful, this function provides data to the caller through an output parameter. Once you are finished with the data, you must release it by making the appropriate call into the EOS SDK.