- Версия MoonLoader
- .026-beta
code:
function startMaskTimer()
lua_thread.create(function()
timerActive = true
while timerActive == true do
local offMaskTime = os.clock() * 1000 + 600000
local remainingTime = math.floor((offMaskTime - os.clock() * 1000 ) / 1000)
local seconds = remainingTime % 60
local minutes = math.floor(remainingTime / 60)
if seconds >= 10 then
mtime = minutes .. ":" .. seconds
else
mtime = minutes .. ":0" .. seconds
end
if seconds < 0 or minutes < 0 then
mtime = "00:00"
timerActive = false
end
wait(100)
end
timerActive = false
end)
end
Ошибся местоположением 1 строки :/
правильно:
function startMaskTimer()
lua_thread.create(function()
timerActive = true
local offMaskTime = os.clock() * 1000 + 600000
while timerActive == true do
local remainingTime = math.floor((offMaskTime - os.clock() * 1000 ) / 1000)
local seconds = remainingTime % 60
local minutes = math.floor(remainingTime / 60)
if seconds >= 10 then
mtime = minutes .. ":" .. seconds
else
mtime = minutes .. ":0" .. seconds
end
if seconds < 0 or minutes < 0 then
mtime = "00:00"
timerActive = false
end
wait(100)
end
timerActive = false
end)
end
Последнее редактирование: