From 08c0f656531809fb3890ab896ef7a2dd031bb6f0 Mon Sep 17 00:00:00 2001 From: Alexander Pickering Date: Fri, 23 Mar 2018 15:53:00 -0400 Subject: Issue hints if database is wrong Issues a hint about mysqlite not use Mysqloo if another database is being used. --- gamemode/core/mapstich/sv_mapstich.lua | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gamemode/core/mapstich/sv_mapstich.lua') 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") -- cgit v1.2.3-70-g09d2