From 5e2eb7d67ae933b7566f1944d0bb7744da03d586 Mon Sep 17 00:00:00 2001 From: aura Date: Tue, 17 Feb 2026 23:42:09 +0100 Subject: move source stuff to its own folder --- .../scripting/gokz-localdb/db/setup_database.sp | 34 ---------------------- 1 file changed, 34 deletions(-) delete mode 100644 sourcemod/scripting/gokz-localdb/db/setup_database.sp (limited to 'sourcemod/scripting/gokz-localdb/db/setup_database.sp') diff --git a/sourcemod/scripting/gokz-localdb/db/setup_database.sp b/sourcemod/scripting/gokz-localdb/db/setup_database.sp deleted file mode 100644 index 4965541..0000000 --- a/sourcemod/scripting/gokz-localdb/db/setup_database.sp +++ /dev/null @@ -1,34 +0,0 @@ -/* - Set up the connection to the local database. -*/ - - - -void DB_SetupDatabase() -{ - char error[255]; - gH_DB = SQL_Connect("gokz", true, error, sizeof(error)); - if (gH_DB == null) - { - SetFailState("Database connection failed. Error: \"%s\".", error); - } - - char databaseType[8]; - SQL_ReadDriver(gH_DB, databaseType, sizeof(databaseType)); - if (strcmp(databaseType, "sqlite", false) == 0) - { - g_DBType = DatabaseType_SQLite; - } - else if (strcmp(databaseType, "mysql", false) == 0) - { - g_DBType = DatabaseType_MySQL; - } - else - { - SetFailState("Incompatible database driver. Use SQLite or MySQL."); - } - - DB_CreateTables(); - - Call_OnDatabaseConnect(); -} \ No newline at end of file -- cgit v1.2.3