diff --git a/RaceTimer_2026/scripting/unloze_racetimer_2026.sp b/RaceTimer_2026/scripting/unloze_racetimer_2026.sp index cfd4aef..54efcd3 100755 --- a/RaceTimer_2026/scripting/unloze_racetimer_2026.sp +++ b/RaceTimer_2026/scripting/unloze_racetimer_2026.sp @@ -1651,7 +1651,7 @@ public void FetchOtherMapOwnPosition(int client, const char[] mapName, int stage FormatServerTag(serverTag); char sQuery[g_dQueryLength]; - Format(sQuery, sizeof(sQuery), "select ti.time_value, (select count(*) + 1 from `timer_records` ti3 inner join `zone_categories` zc2 on ti3.zone_category_id = zc2.id where zc2.map_name = '%s' and zc2.stage = %i and zc2.cvars_hash = %i and zc2.server_tag = '%s' and ti3.time_value < ti.time_value and ti3.is_invalid = 0 and zc2.is_invalid = 0) as position, UNIX_TIMESTAMP(ti2.recorded_at) as recorded_at from `timer_records` ti inner join `timer_improvements` ti2 on ti.improvement_id = ti2.id inner join `zone_categories` zc on ti.zone_category_id = zc.id where ti2.steam_auth = '%s' and zc.map_name = '%s' and zc.stage = %i and zc.cvars_hash = %i ti.is_invalid = 0 and zc.is_invalid = 0 order by ti.time_value asc limit 1", mapName, stage, cvarsHash, serverTag, g_csSID[client], mapName, stage, cvarsHash); + Format(sQuery, sizeof(sQuery), "select ti.time_value, (select count(*) + 1 from `timer_records` ti3 inner join `zone_categories` zc2 on ti3.zone_category_id = zc2.id where zc2.map_name = '%s' and zc2.stage = %i and zc2.cvars_hash = %i and zc2.server_tag = '%s' and ti3.time_value < ti.time_value and ti3.is_invalid = 0 and zc2.is_invalid = 0) as position, UNIX_TIMESTAMP(ti2.recorded_at) as recorded_at from `timer_records` ti inner join `timer_improvements` ti2 on ti.improvement_id = ti2.id inner join `zone_categories` zc on ti.zone_category_id = zc.id where ti2.steam_auth = '%s' and zc.map_name = '%s' and zc.stage = %i and zc.cvars_hash = %i and ti.is_invalid = 0 and zc.is_invalid = 0 order by ti.time_value asc limit 1", mapName, stage, cvarsHash, serverTag, g_csSID[client], mapName, stage, cvarsHash); DataPack hDataPack = new DataPack(); hDataPack.WriteCell(GetClientSerial(client));