From 20f1536410217735c7c31c8f877f1b043e88d3a5 Mon Sep 17 00:00:00 2001 From: jenz Date: Sun, 30 Jun 2024 00:50:02 +0200 Subject: [PATCH] reduced priority from high to low --- AutismBotIngame/scripting/bot_surfing.sp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/AutismBotIngame/scripting/bot_surfing.sp b/AutismBotIngame/scripting/bot_surfing.sp index 2e9996ea..09562f46 100644 --- a/AutismBotIngame/scripting/bot_surfing.sp +++ b/AutismBotIngame/scripting/bot_surfing.sp @@ -226,7 +226,7 @@ public int BotMimic_OnRecordSaved(int client, char[] name, char[] category, char //file = The actual path to the saved .rec file. char sQuery[256]; Format(sQuery, sizeof(sQuery), "UPDATE `maps_coordinates` SET `recordname` = '%s' WHERE `recordname` = 'unknown'", file); - g_dDatabase.Query(SQL_insertQuery_record_saved, sQuery, _, DBPrio_High); + g_dDatabase.Query(SQL_insertQuery_record_saved, sQuery, _, DBPrio_Low); } @@ -242,7 +242,7 @@ public Action BotMimic_OnStartRecording(int client, char[] name, char[] category FloatToString(bot_start_coords[1], coords[1], sizeof(coords[])); FloatToString(bot_start_coords[2], coords[2], sizeof(coords[])); Format(sQuery, sizeof(sQuery), "insert into `maps_coordinates` (`mapname`, `recordname`, `coordinate`) VALUES ('%s', 'unknown', '%s %s %s')", map_name, coords[0], coords[1], coords[2]); - g_dDatabase.Query(SQL_insertQuery, sQuery, _, DBPrio_High); + g_dDatabase.Query(SQL_insertQuery, sQuery, _, DBPrio_Low); } public void select_map_related_surfs() @@ -251,7 +251,7 @@ public void select_map_related_surfs() GetCurrentMap(map_name, sizeof(map_name)); char sQuery[256]; Format(sQuery, sizeof(sQuery), "select recordname, coordinate from `maps_coordinates` where mapname = '%s'", map_name); - g_dDatabase.Query(SQL_OnQueryCompleted, sQuery, _, DBPrio_High); + g_dDatabase.Query(SQL_OnQueryCompleted, sQuery, _, DBPrio_Low); } public void SQL_OnQueryCompleted(Database db, DBResultSet results, const char[] error, DataPack data) @@ -309,7 +309,7 @@ public void SQL_OnDatabaseConnect(Database db, const char[] error, any data) g_dDatabase = db; char sQuery[256]; Format(sQuery, sizeof(sQuery), "CREATE TABLE IF NOT EXISTS `maps_coordinates` (`mapname` VARCHAR(254) NOT NULL, `coordinate` VARCHAR(254) NOT NULL, `recordname` VARCHAR(254) NOT NULL, PRIMARY KEY (`mapname`, `recordname`, `coordinate`))"); - g_dDatabase.Query(SQL_FinishedQuery_creating_tables, sQuery, _, DBPrio_High); + g_dDatabase.Query(SQL_FinishedQuery_creating_tables, sQuery, _, DBPrio_Low); } public void SQL_insertQuery_record_saved(Database db, DBResultSet results, const char[] error, DataPack data)