From 4894d4cf429314ab0548d8ff1517b3695f10dcc3 Mon Sep 17 00:00:00 2001 From: sekta Date: Wed, 31 Jul 2024 18:03:23 +0400 Subject: [PATCH] 1000 ms in 1 sec --- res/scripts/stdlib.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/res/scripts/stdlib.lua b/res/scripts/stdlib.lua index 60f9d2dd..fb8c080c 100644 --- a/res/scripts/stdlib.lua +++ b/res/scripts/stdlib.lua @@ -309,7 +309,7 @@ function table.copy(t) return copied end -function table.count(t) +function table.count_pairs(t) local count = 0 for k, v in pairs(t) do @@ -376,7 +376,7 @@ function string.formatted_time(seconds, format) if (not seconds) then seconds = 0 end local hours = math.floor(seconds / 3600) local minutes = math.floor((seconds / 60) % 60) - local millisecs = (seconds - math.floor(seconds)) * 100 + local millisecs = (seconds - math.floor(seconds)) * 1000 seconds = math.floor(seconds % 60) if (format) then