Update ExileServer_system_database_connect.sqf
Added version check for extension is version 1.027 or higher.
This commit is contained in:
parent
6503456d0a
commit
0f5a6a4322
@ -17,7 +17,11 @@ ExileServerRconSessionID = "";
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
_result = "extDB3" callExtension "9:VERSION";
|
_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");
|
_result = call compile ("extDB3" callExtension "9:ADD_DATABASE:exile");
|
||||||
if (_result select 0 isEqualTo 0) then
|
if (_result select 0 isEqualTo 0) then
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user