reduced priority from high to low
This commit is contained in:
parent
f4c8e1f61d
commit
20f1536410
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user