summaryrefslogtreecommitdiff
path: root/sourcemod/scripting/gokz-localdb/db/setup_map_courses.sp
diff options
context:
space:
mode:
authoraura <nw@moneybot.cc>2026-02-17 23:42:09 +0100
committeraura <nw@moneybot.cc>2026-02-17 23:42:09 +0100
commit5e2eb7d67ae933b7566f1944d0bb7744da03d586 (patch)
tree054acff1113270a9cd07933df760f3768c1b6853 /sourcemod/scripting/gokz-localdb/db/setup_map_courses.sp
parent341db13a008dc12bb22ceb50452d93d01476308c (diff)
move source stuff to its own folder
Diffstat (limited to 'sourcemod/scripting/gokz-localdb/db/setup_map_courses.sp')
-rw-r--r--sourcemod/scripting/gokz-localdb/db/setup_map_courses.sp45
1 files changed, 0 insertions, 45 deletions
diff --git a/sourcemod/scripting/gokz-localdb/db/setup_map_courses.sp b/sourcemod/scripting/gokz-localdb/db/setup_map_courses.sp
deleted file mode 100644
index 69bb89e..0000000
--- a/sourcemod/scripting/gokz-localdb/db/setup_map_courses.sp
+++ /dev/null
@@ -1,45 +0,0 @@
-/*
- Inserts the map's courses into the database.
-*/
-
-
-
-void DB_SetupMapCourses()
-{
- char query[512];
-
- Transaction txn = SQL_CreateTransaction();
-
- for (int course = 0; course < GOKZ_MAX_COURSES; course++)
- {
- if (!GOKZ_GetCourseRegistered(course))
- {
- continue;
- }
-
- switch (g_DBType)
- {
- case DatabaseType_SQLite:FormatEx(query, sizeof(query), sqlite_mapcourses_insert, gI_DBCurrentMapID, course);
- case DatabaseType_MySQL:FormatEx(query, sizeof(query), mysql_mapcourses_insert, gI_DBCurrentMapID, course);
- }
- txn.AddQuery(query);
- }
-
- SQL_ExecuteTransaction(gH_DB, txn, INVALID_FUNCTION, DB_TxnFailure_Generic, _, DBPrio_High);
-}
-
-void DB_SetupMapCourse(int course)
-{
- char query[512];
-
- Transaction txn = SQL_CreateTransaction();
-
- switch (g_DBType)
- {
- case DatabaseType_SQLite:FormatEx(query, sizeof(query), sqlite_mapcourses_insert, gI_DBCurrentMapID, course);
- case DatabaseType_MySQL:FormatEx(query, sizeof(query), mysql_mapcourses_insert, gI_DBCurrentMapID, course);
- }
- txn.AddQuery(query);
-
- SQL_ExecuteTransaction(gH_DB, txn, INVALID_FUNCTION, DB_TxnFailure_Generic, _, DBPrio_High);
-} \ No newline at end of file