From 0f5a6a4322f23394a419b2f13bb21a84ba3d1f97 Mon Sep 17 00:00:00 2001 From: Torndeco Date: Thu, 9 Mar 2017 22:03:27 +0000 Subject: [PATCH] Update ExileServer_system_database_connect.sqf Added version check for extension is version 1.027 or higher. --- Overrides/ExileServer_system_database_connect.sqf | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Overrides/ExileServer_system_database_connect.sqf b/Overrides/ExileServer_system_database_connect.sqf index 4fe7f7d..5905493 100644 --- a/Overrides/ExileServer_system_database_connect.sqf +++ b/Overrides/ExileServer_system_database_connect.sqf @@ -17,7 +17,11 @@ ExileServerRconSessionID = ""; try { _result = "extDB3" callExtension "9:VERSION"; - format ["Installed extDB2 version: %1", _result] call ExileServer_util_log; + format ["Installed extDB3 version: %1", _result] call ExileServer_util_log; + if ((parseNumber _result) < 1.027) then + { + throw format ["Error Required extDB3 Version 1.027 or higher: %1", _result]; + }; _result = call compile ("extDB3" callExtension "9:ADD_DATABASE:exile"); if (_result select 0 isEqualTo 0) then {