Talk:GetRealMonthM

From Multi Theft Auto: Wiki
Revision as of 14:35, 9 November 2016 by Walid (talk | contribs) (Created page with "Simply it can be like this (much faster): --Walid (talk) <syntaxhighlight lang="lua"> local monthsTable = {"January","February","March","Ap...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Simply it can be like this (much faster): --Walid (talk)

local monthsTable = {"January","February","March","April","May","June","July","August","September","October","November","December"}

function getRealMonthName()
    local time = getRealTime()
    local month = time.month + 1
    return monthsTable[month] 
end

On more thing try to change the function name to getRealMonthName (much better)