yoshmi pointed out that names were not always up to date in the top 100 command
This commit is contained in:
parent
42332e036d
commit
63585069d1
@ -64,8 +64,9 @@ public Action time_query_activity(Handle timer, any data)
|
|||||||
int size2 = 2 * strlen(sName) + 1;
|
int size2 = 2 * strlen(sName) + 1;
|
||||||
char[] sEscapedName = new char[size2 + 1];
|
char[] sEscapedName = new char[size2 + 1];
|
||||||
g_hDatabase.Escape(sName, sEscapedName, size2 + 1);
|
g_hDatabase.Escape(sName, sEscapedName, size2 + 1);
|
||||||
Format(sQuery, sizeof(sQuery), "update unloze_playtimestats.player_time set `%s` = `%s` + 10, player_name = '%s' where steam_id = '%s' and ipv4 = '%s'", sServer, sServer, sEscapedName, sAuthID, sIP);
|
Format(sQuery, sizeof(sQuery), "update unloze_playtimestats.player_time set `%s` = `%s` + 10 where steam_id = '%s' and ipv4 = '%s'", sServer, sServer, sAuthID, sIP);
|
||||||
//LogError("sQuery: %s", sQuery);
|
g_hDatabase.Query(SQL_FinishedQuery, sQuery, _, DBPrio_Low);
|
||||||
|
Format(sQuery, sizeof(sQuery), "update unloze_playtimestats.player_time set player_name = '%s' where steam_id = '%s'", sEscapedName, sAuthID);
|
||||||
g_hDatabase.Query(SQL_FinishedQuery, sQuery, _, DBPrio_Low);
|
g_hDatabase.Query(SQL_FinishedQuery, sQuery, _, DBPrio_Low);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user