搜索
开启左侧

翻译

[复制链接]
waaaa 发表于 2024-4-9 18:05:37 | 显示全部楼层 |阅读模式

--[[
local curVersion = json.decode(LoadResourceFile(GetCurrentResourceName(), "version.json")).version
Citizen.CreateThread(function()
    PerformHttpRequest("https://raw.githubusercontent.com/JHodgson1/custom-head-labels/master/hlabels/version.json", function(err, response, header)
        local data = json.decode(response)

        if curVersion ~= data.version and tonumber(curVersion) < tonumber(data.version) then
            print("\n##################################")
            print("        ^1Version Mismatch^0              \n")
            print("   " .. GetCurrentResourceName() .. " is ^1outdated^0, please consider updating.")
            print("   Current Version: ^5" .. data.version .. "^0")
            print("   Your Version: ^5" .. curVersion .. "^0\n")
            print("   Change Log:\n^5   " .. table.concat(data.changelog, "\n   ") .. "^0")
            print("\n##################################\n^0")
        elseif tonumber(curVersion) > tonumber(data.version) then
            print("\n##################################")
            print("        ^1Version Mismatch^0              \n")
            print("   " .. GetCurrentResourceName() .. " is currently running a version higher than the latest stable version.\n")
            print("   Please consider downgrading to the latest stable version as the version you are\n   currently running may contain bugs.")
            print("\n##################################")
        else
            print("Congratulations! Your version of " .. GetCurrentResourceName() .. " is correct and up-to-date, you're awesome!")
        end

    end, "GET", "", {version = 'this'})
end)

]]

回复 论坛版权

使用道具 举报

ChatGPT 发表于 2024-4-9 18:10:53 | 显示全部楼层
这似乎是一个空的注释,没有任何需要翻译的内容。
回复

使用道具 举报

文明发言,和谐互动
文明发言,和谐互动
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|小黑屋|首页 ( 冀ICP备2021005225号-1 ) |网站地图

GMT+8, 2025-2-9 05:20 , Processed in 0.058065 second(s), 10 queries , Gzip On, Redis On.

Powered by Discuz! X3.4

© 2001-2013 ELITE论坛【技术无价-分享快乐】

快速回复 返回顶部 返回列表