fixed query to display toptimes correctly ingame
This commit is contained in:
parent
881be659b0
commit
581606d99c
@ -654,9 +654,9 @@ public void CheckTop(int client, int index, int autismstate)
|
|||||||
}
|
}
|
||||||
//we have index now from menu selection
|
//we have index now from menu selection
|
||||||
if (l_iZoneCount < 2)
|
if (l_iZoneCount < 2)
|
||||||
Format(sQuery, sizeof(sQuery), "SELECT name, `%s` FROM `zetimer_table` WHERE `%s` != 0.000 ORDER BY `%s` * 1 ASC LIMIT 10", g_cMapname, g_cMapname, g_cMapname);
|
Format(sQuery, sizeof(sQuery), "SELECT name, `%s` FROM `zetimer_table` WHERE `%s` != 0.000 ORDER BY LENGTH(`%s`) ASC, `%s` * 1 ASC LIMIT 10", g_cMapname, g_cMapname, g_cMapname, g_cMapname);
|
||||||
else
|
else
|
||||||
Format(sQuery, sizeof(sQuery), "SELECT name, `%sS%i` FROM `zetimer_table` WHERE `%sS%i` != 0.000 ORDER BY `%sS%i` * 1 ASC LIMIT 10", g_cMapname, index, g_cMapname, index, g_cMapname, index);
|
Format(sQuery, sizeof(sQuery), "SELECT name, `%sS%i` FROM `zetimer_table` WHERE `%sS%i` != 0.000 ORDER BY LENGTH(`%sS%i`) ASC, `%sS%i` * 1 ASC LIMIT 10", g_cMapname, index, g_cMapname, index, g_cMapname, index, g_cMapname, index);
|
||||||
g_dDatabase.Query(SQL_Select_Top_Callback, sQuery, GetClientSerial(client));
|
g_dDatabase.Query(SQL_Select_Top_Callback, sQuery, GetClientSerial(client));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user