{ s = e.crypto_idfp; }
else if(IS_BOT_CLIENT(e))
{ s = sprintf("bot#%g#%s", skill, e.cleanname); }
-
+
if((s == "") || find(world, playerstats_id, s)) // already have one of the ID - next one can't be tracked then!
{
if(IS_BOT_CLIENT(e))
else
{ s = sprintf("player#%d", e.playerid); }
}
-
+
e.playerstats_id = strzone(s);
// now add the player to the database
string key = sprintf("%s:*", e.playerstats_id);
string p = db_get(PS_GR_OUT_DB, key);
-
+
if(p == "")
{
if(PS_GR_OUT_PL)
string key = sprintf("%d", t);
string p = db_get(PS_GR_OUT_DB, key);
-
+
if(p == "")
{
if(PS_GR_OUT_TL)
string key = sprintf("*:%s", event_id);
string p = db_get(PS_GR_OUT_DB, key);
-
+
if(p == "")
{
if(PS_GR_OUT_EVL)
void PlayerStats_GameReport(float finished)
{
if(PS_GR_OUT_DB < 0) { return; }
-
+
PlayerScore_Sort(score_dummyfield, 0, 0, 0);
PlayerScore_Sort(scoreboard_pos, 1, 1, 1);
if(teamplay) { PlayerScore_TeamStats(); }
nn = db_get(PS_GR_OUT_DB, sprintf("%s:_playerid", p));
if(nn != "") { url_fputs(fh, sprintf("i %s\n", nn)); }
- // player name
+ // player name
nn = db_get(PS_GR_OUT_DB, sprintf("%s:_netname", p));
if(nn != "") { url_fputs(fh, sprintf("n %s\n", nn)); }
url_fclose(fh);
break;
}
-
+
case URL_READY_CLOSED:
{
// url_fclose has finished
}
break;
}
-
+
case URL_READY_ERROR:
default:
{
#endif
url_fputs(fh, sprintf("l %s\n", cvar_string("_menu_prvm_language"))); // language
url_fputs(fh, sprintf("c %s\n", cvar_string("_menu_prvm_country"))); // country
- url_fputs(fh, sprintf("g %s\n", cvar_string("_menu_prvm_gender"))); // gender
+ url_fputs(fh, sprintf("g %s\n", cvar_string("_cl_gender"))); // gender
url_fputs(fh, sprintf("n %s\n", cvar_string("_cl_name"))); // name
url_fputs(fh, sprintf("m %s %s\n", cvar_string("_cl_playermodel"), cvar_string("_cl_playerskin"))); // model/skin
*/url_fputs(fh, "\n");
url_fclose(fh);
break;
}
-
+
case URL_READY_CANREAD:
{
string s = "";
print("Player stats synchronized with server\n");
break;
}
-
+
case URL_READY_ERROR:
default:
{
db_put(PS_D_IN_DB, marker, PS_D_IN_EVL);
strunzone(PS_D_IN_EVL);
}
- else { db_put(PS_D_IN_DB, marker, "#"); }
+ else { db_put(PS_D_IN_DB, marker, "#"); }
PS_D_IN_EVL = strzone(marker);
}
url_fclose(fh);
break;
}
-
+
case URL_READY_CANREAD:
{
//print("PlayerStats_PlayerDetail_Handler(): Got response from player stats server:\n");
string key = "", event = "", data = "";
if(argv(0) == "#") { continue; }
-
+
if(count == 2)
{
key = argv(0);
}
break;
}
-
+
default:
{
printf(
#ifdef MENUQC
url_fputs(fh, sprintf("l %s\n", cvar_string("_menu_prvm_language"))); // language
url_fputs(fh, sprintf("c %s\n", cvar_string("_menu_prvm_country"))); // country
- url_fputs(fh, sprintf("g %s\n", cvar_string("_menu_prvm_gender"))); // gender
+ url_fputs(fh, sprintf("g %s\n", cvar_string("_cl_gender"))); // gender
url_fputs(fh, sprintf("n %s\n", cvar_string("_cl_name"))); // name
url_fputs(fh, sprintf("m %s %s\n", cvar_string("_cl_playermodel"), cvar_string("_cl_playerskin"))); // model/skin
#endif
me.TD(me, 1, 2.5, e = makeXonoticCheckBox(0, "cl_allow_uid2name", _("Allow player statistics to use your nickname")));
setDependent(e, "cl_allow_uidtracking", 1, 1);
me.gotoRC(me, 4, 3.1); // TOP RIGHT
- //me.gotoRC(me, 12.5, 3.1); // BOTTOM RIGHT
+ //me.gotoRC(me, 12.5, 3.1); // BOTTOM RIGHT
//me.gotoRC(me, 12.5, 0); // BOTTOM LEFT
me.TDempty(me, 0.25);
me.TD(me, 9, 2.5, statslist = makeXonoticStatsList());
//me.gotoRC(me, 6.5, 3.1); me.setFirstColumn(me, me.currentColumn); // TOP SECTION, BOTTOM POS
#if 0
me.TD(me, 1, 1, e = makeXonoticTextLabel(0, _("Gender:")));
- me.TD(me, 1, 2, e = makeXonoticTextSlider("cl_gender"));
+ me.TD(me, 1, 2, e = makeXonoticTextSlider("_cl_gender"));
e.addValue(e, ZCTX(_("GENDER^Undisclosed")), "0");
e.addValue(e, ZCTX(_("GENDER^Female")), "1");
e.addValue(e, ZCTX(_("GENDER^Male")), "2");
#define GENDERWIDTH_LENGTH 2.5
#define GENDERWIDTH_ITEM (GENDERWIDTH_LENGTH / 3)
me.TDempty(me, GENDERWIDTH_OFFSET);
- me.TD(me, 1, GENDERWIDTH_ITEM, e = makeXonoticRadioButton(3, "cl_gender", "2", _("Female")));
- me.TD(me, 1, GENDERWIDTH_ITEM, e = makeXonoticRadioButton(3, "cl_gender", "1", _("Male")));
- me.TD(me, 1, GENDERWIDTH_ITEM, e = makeXonoticRadioButton(3, "cl_gender", "0", _("Undisclosed")));
+ me.TD(me, 1, GENDERWIDTH_ITEM, e = makeXonoticRadioButton(3, "_cl_gender", "2", _("Female")));
+ me.TD(me, 1, GENDERWIDTH_ITEM, e = makeXonoticRadioButton(3, "_cl_gender", "1", _("Male")));
+ me.TD(me, 1, GENDERWIDTH_ITEM, e = makeXonoticRadioButton(3, "_cl_gender", "0", _("Undisclosed")));
#endif
me.gotoRC(me, me.rows - 1, 0);