Jump to content

[RESOLVIDO] Sistema VIP


Recommended Posts

Primeiramente, muito obrigado cara!!!

Mas eu queria saber uma coisa '-' ... como faço pra calcular o valor exato dos Dias, Horas, Minutos e Segundos?

Tentei isso, mas fica 100 segundos e ai vai diminuindo 99, 98... e quando chega no 60 o minuto buga.

         local time = getRealTime() 
        local timeVip = time.timestamp 
        local dataVip = getElementData (getLocalPlayer(), "vip:expire") 
        local remainTime = (dataVip - timeVip) 
        local remainTimeSeconds = math.floor(remainTime) 
        local remainTimeMin = math.floor(remainTime/60) 
        local remainTimeHour = math.floor(remainTime/3600) 
        local remainTimeDays = math.floor(remainTime/86400) 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...