View Single Post
03-07-10, 09:41 PM   #8
Katae
A Cobalt Mageweaver
AddOn Author - Click to view addons
Join Date: Jun 2007
Posts: 208
Originally Posted by Breetard View Post
Didnt seem to work, do you think you could help me by adding it in the code?
You can just add this code, then add the variables hour and minute to the end of the existing format function, like so:

Code:
-- Server Clock
local hour, minute, aptime, pm = GetGameTime(), true
if aptime then
   if hour == 0 then hour = 12 end
   if hour > 12 then hour = hour - 12 end
   if hour >= 12 then pm = true end
end

return format(":: %s :: %s%%dur :: %sfps :: %smB :: %sms :: %s:%s%s ::", gold, durability, fps, memory, latency, hour, minute, aptime and pm and "pm" or "am" or "")
Should work, did not test.
  Reply With Quote