aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Pickering <alexandermpickering@gmail.com>2018-03-23 15:53:00 -0400
committerAlexander Pickering <alexandermpickering@gmail.com>2018-03-23 15:53:00 -0400
commit08c0f656531809fb3890ab896ef7a2dd031bb6f0 (patch)
tree5b0b26a3a4589323ff58c3f4b244abff14460cc8
parentbe4055809b02a783f93ac15ee6fc326d0238c376 (diff)
downloadartery-08c0f656531809fb3890ab896ef7a2dd031bb6f0.tar.gz
artery-08c0f656531809fb3890ab896ef7a2dd031bb6f0.tar.bz2
artery-08c0f656531809fb3890ab896ef7a2dd031bb6f0.zip
Issue hints if database is wrong
Issues a hint about mysqlite not use Mysqloo if another database is being used.
-rw-r--r--gamemode/core/mapstich/sv_mapstich.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/gamemode/core/mapstich/sv_mapstich.lua b/gamemode/core/mapstich/sv_mapstich.lua
index 3c5da66..11b4540 100644
--- a/gamemode/core/mapstich/sv_mapstich.lua
+++ b/gamemode/core/mapstich/sv_mapstich.lua
@@ -9,6 +9,10 @@ local q = nrequire("core/database/sv_queries.lua")
local log = nrequire("log.lua")
--if not zones then error("This thing needs zones to function!") end
+hook.Add("DatabaseInitialized","initalize_mapstich",function()
+ assert(MySQLite.isMySQL(),"Database wasn't mysqloo, something is probably wrong!")
+end)
+
util.AddNetworkString("art_zonechange")
util.AddNetworkString("art_sendtoserver")