From cefcfe6cbf4f0a60886936109535872f0ac538f1 Mon Sep 17 00:00:00 2001 From: rubin Date: Sat, 28 Jan 2023 21:02:37 +0300 Subject: [PATCH] bump version 28.01.23.1 --- changelog | 3 +++ corn-hud.lua | 6 +++--- version | 2 +- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/changelog b/changelog index de5471f..b735be2 100644 --- a/changelog +++ b/changelog @@ -3,3 +3,6 @@ Теперь можно сменить клавиши активации Скрипт переведен в кодировку UTF-8 Добавлен модуль автообновлений /rubin-mods +Версия от 28.01.23.1 + Фикс проверки /finfo + Фикс загрузки с фермы \ No newline at end of file diff --git a/corn-hud.lua b/corn-hud.lua index 326f98b..1e0dc76 100644 --- a/corn-hud.lua +++ b/corn-hud.lua @@ -1,6 +1,6 @@ script_name('corn-hud') script_author("Serhiy_Rubin") -script_version("28.01.2023") +script_version("28.01.23.1") require 'lib.sampfuncs' require 'lib.moonloader' dlstatus = require("moonloader").download_status @@ -510,7 +510,7 @@ script_update = { local result, text = pcall(openURL, script_update.version_url, fpath) if result then ini.settings.server_version = text - if text ~= "" and not string.find(text, thisScript().version) then + if text ~= "" and text ~= thisScript().version then addChatMessage( string.format("Вышла новая версия '%s'. Текущая: '%s'", text, thisScript().version) ) if ini.settings.auto_update then addChatMessage( string.format("Автообновление скрипта включено. Процесс запущен!") ) @@ -529,7 +529,7 @@ script_update = { local fpath = os.tmpname() local result, text = pcall(openURL, script_update.version_url, fpath) if result then - if text ~= "" and not string.find(text, thisScript().version) then + if text ~= "" and text ~= thisScript().version then addChatMessage( string.format("Вышла новая версия '%s'. Текущая: '%s'", text, thisScript().version) ) local fpath = os.tmpname() local result, text = pcall(openURL, script_update.script_url, fpath) diff --git a/version b/version index 3ada7f6..3ddefde 100644 --- a/version +++ b/version @@ -1 +1 @@ -28.01.2023 \ No newline at end of file +28.01.23.1 \ No newline at end of file