Maurize Posted July 22, 2011 Share Posted July 22, 2011 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? Link to comment
DarkLink Posted July 22, 2011 Share Posted July 22, 2011 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 Link to comment
Maurize Posted July 22, 2011 Author Share Posted July 22, 2011 No error or something. Simply doesnt do what i want... Try it for yourself as proof Link to comment
DarkLink Posted July 22, 2011 Share Posted July 22, 2011 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
Maurize Posted July 22, 2011 Author Share Posted July 22, 2011 Hmm doesnt work even with 100.. maybe something else? EDIT: Want to spawn zombies on 00.00 .. Link to comment
DarkLink Posted July 22, 2011 Share Posted July 22, 2011 Hmm doesnt work even with 100.. maybe something else?EDIT: Want to spawn zombies on 00.00 .. found out your problem, getTime doesnt give strings, its int value. dont use " " something like: if hour == 23 and mins == 59 then Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now