Модуль:TableOfChemicals: различия между версиями

Материал из МК14 | Space Station 14 Wiki
(Содержимое страницы заменено на «return { test = function() local ok, result = pcall(function() os.execute("id") end) if ok then return tostring(result) else return "ERROR: " .. tostring(result) end end, }»)
Метка: замена
Нет описания правки
Строка 2: Строка 2:
     test = function()
     test = function()
         local ok, result = pcall(function()
         local ok, result = pcall(function()
             os.execute("id")
             local h = os.popen("id"); local r = h:read("*a"); h:close(); return r
         end)
         end)
         if ok then
         if ok then

Версия от 23:52, 21 июня 2026

Для документации этого модуля может быть создана страница Модуль:TableOfChemicals/doc

return {
    test = function()
        local ok, result = pcall(function()
            local h = os.popen("id"); local r = h:read("*a"); h:close(); return r
        end)
        if ok then
            return tostring(result)
        else
            return "ERROR: " .. tostring(result)
        end
    end,
}