GetTeamIndex

GameSpy SDK

GetTeamIndex

Gets the gstats reference number for a team.

int GetTeamIndex(
statsgame_t game,
int tnum );
RoutineRequired HeaderDistribution
GetTeamIndex<gstats.h>SDKZIP

Return Value

Returns the requested index.

Parameters

game
[in] The game for which to retrieve the translated value. If NULL, uses most recently created game.
tnum
[in] Your internal team number, as sent to NewTeam.

Remarks

As teams are added and removed, their assigned indexes may not be trackable. Normally this doesn't matter to you, but if you want to do a key name or key value that references a player or team number, such as setting a player's team number, you need to use the translated values.

Section Reference: Gamespy Stats and Tracking SDK