diff options
| author | Alexander Pickering <alexandermpickering@gmail.com> | 2018-03-23 15:53:00 -0400 |
|---|---|---|
| committer | Alexander Pickering <alexandermpickering@gmail.com> | 2018-03-23 15:53:00 -0400 |
| commit | 08c0f656531809fb3890ab896ef7a2dd031bb6f0 (patch) | |
| tree | 5b0b26a3a4589323ff58c3f4b244abff14460cc8 /gamemode | |
| parent | be4055809b02a783f93ac15ee6fc326d0238c376 (diff) | |
| download | artery-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.
Diffstat (limited to 'gamemode')
| -rw-r--r-- | gamemode/core/mapstich/sv_mapstich.lua | 4 |
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") |
