Originally Posted by Katae
Oh right ...
Well, you could change the minute variable that's near the end of format() to format("%02d", minute) and it'll pad any single digits with a zero.
|
Alrighty, now its working perfect! Thanks so much for your help, between you and my boyfriend I was able to figure it out
. Here is the end result for anyone who wants to add in the time.
Code:
-- Server Clock
local hour, minute = GetGameTime()
local aptime, ampm = true, "am"
if aptime then
if hour == 0 then hour = 12 end
if hour > 12 then hour = hour - 12 end
if hour <= 12 then ampm = "pm" end
else ampm = "" end
return format(":: %s :: %s%%dur :: %sfps :: %smB :: %sms :: %s:%02d%s ::", gold, durability, fps, memory, latency, hour, minute, ampm)
end, update = 1,