NewPlayer
Adds a "player" to the game and assigns them an internal player number. Sets their connect time to the number of seconds since theh NewGame function was called.
- void NewPlayer(
- statsgame_t game,
- int pnum,
- gsi_char * name );
Routine | Required Header | Distribution |
---|---|---|
NewPlayer | <gstats.h> | SDKZIP |
Parameters
- game
- [in] The game to add the player to. If NULL, uses most recently created game
- pnum
- [in] Your internal reference for this player.
- name
- [in] The name for this player.
Remarks
If you don't have the player's name yet, set it to empty ("") and use of the BucketStringOp function to set it later.
Use parameter pnum's internal reference value in any calls to the "Bucket__Op" functions.
Section Reference: Gamespy Stats and Tracking SDK