-var string autocvar_g_playerstats_gamereport_uri = "http://stats.xonotic.org/stats/submit";
-var string autocvar_g_playerstats_playerbasic_uri = "http://stats.xonotic.org";
-
-void PlayerStats_PlayerBasic();
+string autocvar_g_playerstats_gamereport_uri = "http://stats.xonotic.org/stats/submit";
+
+const float PS_B_STATUS_ERROR = -2;
+const float PS_B_STATUS_IDLE = -1;
+const float PS_B_STATUS_WAITING = 0;
+const float PS_B_STATUS_RECEIVED = 1;
+const float PS_B_STATUS_UPDATING = 2;
+.float playerstats_basicstatus;
+string autocvar_g_playerstats_playerbasic_uri = "http://stats.xonotic.org";
+
+void PlayerStats_PlayerBasic(entity joiningplayer, float newrequest);
+void PlayerStats_PlayerBasic_CheckUpdate(entity joiningplayer);