tested on dev, could not update time properly, adding table name and removing quotes causes the update queries to work
This commit is contained in:
parent
5fef2ab49a
commit
f3b7c332a5
@ -510,9 +510,9 @@ public void FinishedStageRaceZone(int client)
|
|||||||
int stage = player_stage[client];
|
int stage = player_stage[client];
|
||||||
char sQuery[g_dLength];
|
char sQuery[g_dLength];
|
||||||
if (l_iZoneCount < 2)
|
if (l_iZoneCount < 2)
|
||||||
Format(sQuery, sizeof(sQuery), "UPDATE `zetimer_table` SET `%s` = '%s', name = '%s' WHERE steam_auth = '%s' and LENGTH(`%s`) >= LENGTH('%s') and STRCMP(`%s`, '%s') > 0", g_cMapname, sTime, sEscapedName, sSID, g_cMapname, sTime, g_cMapname, sTime);
|
Format(sQuery, sizeof(sQuery), "UPDATE unloze_racetimer_css.zetimer_table SET `%s` = '%s', name = '%s' WHERE steam_auth = '%s' and LENGTH(`%s`) >= LENGTH('%s') and STRCMP(`%s`, '%s') > 0", g_cMapname, sTime, sEscapedName, sSID, g_cMapname, sTime, g_cMapname, sTime);
|
||||||
else
|
else
|
||||||
Format(sQuery, sizeof(sQuery), "UPDATE `zetimer_table` SET `%sS%i` = '%s', name = '%s' WHERE steam_auth = '%s' and LENGTH(`%sS%i`) >= LENGTH('%s') and STRCMP(`%sS%i`, '%s') > 0", g_cMapname, stage, sTime, sEscapedName, sSID, g_cMapname, stage, sTime, g_cMapname, stage, sTime);
|
Format(sQuery, sizeof(sQuery), "UPDATE unloze_racetimer_css.zetimer_table SET `%sS%i` = '%s', name = '%s' WHERE steam_auth = '%s' and LENGTH(`%sS%i`) >= LENGTH('%s') and STRCMP(`%sS%i`, '%s') > 0", g_cMapname, stage, sTime, sEscapedName, sSID, g_cMapname, stage, sTime, g_cMapname, stage, sTime);
|
||||||
|
|
||||||
if (StrEqual(g_csTime_record[client], "0.000"))
|
if (StrEqual(g_csTime_record[client], "0.000"))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user