Talk:GetRealMonthH

From Multi Theft Auto: Wiki
Revision as of 14:56, 9 November 2016 by Walid (talk | contribs) (Created page with "Wrong hijri months order it should be like this: --Walid (talk) '''Note:''' i don't know why the wiki page change the order (maybe because...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Wrong hijri months order it should be like this: --Walid (talk)

Note: i don't know why the wiki page change the order (maybe because it's arabic language) just copy and paste the code in your text editor (notpad++), you can go here to change a page language: Special:PageLanguage.

local hijriMonths = {"محرم","صفر","ربيع الأول","ربيع الثّاني", "جمادى الأولى","جمادي الثاني", "رجب","شعبان","رمضان","شوال","ذو القعدة","ذو الحجة"}

function getHijriMonth()
    local time = getRealTime()
    local month = time.month + 1
    return hijriMonths[month]
end

Also try to change the function name to getHijriMonth.