From baebb670bc9189b9c402ec3a0e642f5000108b71 Mon Sep 17 00:00:00 2001 From: Avently <7953703+avently@users.noreply.github.com> Date: Tue, 16 Mar 2021 22:39:52 +0300 Subject: [PATCH] Fixed Quik version check --- Server.lua | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Server.lua b/Server.lua index 6852d2c..7a88c13 100644 --- a/Server.lua +++ b/Server.lua @@ -11,9 +11,15 @@ else scriptPath = utils.script_path() end local libDir -if not getScriptPath or tonumber(string.match(getInfoParam("VERSION"), "%d+[.]%d+")) >= 8.5 then +local quikVer +if getScriptPath then + quikVer = tonumber(string.match(getInfoParam("VERSION"), "(%d+)[.]")) * 100 + + tonumber(string.match(getInfoParam("VERSION"), "%d+[.](%d+)[.]")) +end + +if not getScriptPath or quikVer >= 805 then libDir = "53" -elseif tonumber(string.match(getInfoParam("VERSION"), "%d+[.]%d+")) >= 8 then +elseif quikVer >= 800 then libDir = "51-x64" else libDir = "51-x86"