Jump to content

Get Ingame Time to Check


Maurize

Recommended Posts

function Welt1()  
    local hour, mins = getTime()  
if hour == "23" and mins == "59" then  
    outputChatBox("Mitternacht", getRootElement(), 255, 200, 0, false)  
    end  
end 
setTimer( Welt1, 1000, 0 ) 

what´s wrong?

some error on console?

I guess its everything okay . hour is 12 or 24 , getTime wiki doesnt say :S

Link to comment
No error or something. Simply doesnt do what i want... Try it for yourself as proof :)

I think ur problem is on the timer, it will check every real second. But I guess the seconds on gta world arent real...

try to change ur timer to

setTimer( Welt1, 100, 0 )

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...