NewTeam

GameSpy SDK

NewTeam

Adds a "team" to the game and assigns it an internal team number. Sets its connect time to the number of seconds since the NewGame function was called.

void NewTeam(
statsgame_t game,
int tnum,
gsi_char * name );
RoutineRequired HeaderDistribution
NewTeam<gstats.h>SDKZIP

Parameters

game
[in] The game to add the team to. If NULL, uses most recently created game
tnum
[in] Your internal reference for this team.
name
[in] The name for this team.

Remarks

If you don't have the team's name yet, set it to empty ("") and use of the BucketStringOp function to set it later.
Use parameter tnum's internal reference value in any calls to the "Bucket__Op" functions.

Section Reference: Gamespy Stats and Tracking SDK