Jump to content

[HELP] Problem with a timer


Recommended Posts

    local serverTime = getRealTime()
    local minute = serverTime.minute
    theFirstTimer = setTimer(function()
        justOneFunction()
        eveyHourTimer = setTimer(justOneFunction60*600000)
    end, (60 - minute) * 600001)

My problem in that fact the timer function was called a lot of time insted of one. I still can not resolve this problem. Have someone an idea? 
I tried to find more information about timers in MTA SA but still can not resolve that.

Edited by Erlkonig
Link to post
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...