.float playerstats_addedglobalinfo;
.string playerstats_id;
-void PlayerStats_Init()
+void PlayerStats_Init() // initiated before InitGameplayMode so that scores are added properly
{
string uri;
playerstats_db = -1;
if(playerstats_db >= 0)
playerstats_waitforme = FALSE; // must wait for it at match end
- serverflags |= SERVERFLAG_PLAYERSTATS;
+ serverflags |= SERVERFLAG_PLAYERSTATS;
PlayerStats_AddEvent(PLAYERSTATS_ALIVETIME);
PlayerStats_AddEvent(PLAYERSTATS_WINS);
{
if(playerstats_db < 0)
return;
-
+
string key;
key = sprintf("*:%s", event_id);
The following keys are defined:
- V: format version (always 1) - this MUST be the first line!
+ V: format version (always a fixed number) - this MUST be the first line!
#: comment (MUST be ignored by any parser)
R: release information on the server
T: time at which the game ended
switch(status)
{
case URL_READY_CANWRITE:
- url_fputs(fh, "V 1\n");
+ url_fputs(fh, "V 3\n");
#ifdef WATERMARK
url_fputs(fh, sprintf("R %s\n", WATERMARK()));
#endif