scReportAddIntValue

GameSpy SDK

scReportAddIntValue

Adds an integer value to the report for a specific key.

SCResult scReportAddIntValue(
SCReportPtr theReportData,
gsi_u16 theKeyId,
gsi_i32 theValue );
RoutineRequired HeaderDistribution
scReportAddIntValue<sc.h>SDKZIP

Return Value

Enum value used to indicate the specific result of the request. This will return SCResult_NO_ERROR if the request completed successfully.

Parameters

theReportData
[in] A valid SC Report object
theKeyId
[in] Key Identifier for reporting data
theValue
[in] 32 bit Integer value representation of the data

Remarks

The host or player can call this function to add either global, player-, or team-specific data. A report needs to be created before calling this function. For global keys, this function can only be called after starting global data. For player or teams, a new player or team needs to be added.