Question Timer during code
#1

How can I make a blank timer, that does nothing for 15000 miliseconds (15 seconds), to delay code?
Reply
#2

What about the sleep function, ******?

https://sampwiki.blast.hk/wiki/Keywords:Statements#sleep
Reply
#3

Yea thats what I was looking for... But I guess the SetTimer can work.

Thanks!
Reply
#4

Nope, timer didn't work. Is ther any easy way of just pausing the code where it is for 15 seconds and then continuing, the timer didn't work... It started and continued (not waited)...

Anyone know?

Thanks in advance!
Reply
#5

Thanks, I figured it out.

For people wondering,

Made a SetTimerEx and added a TimeUp variable, so that when the timer finished it set TimeUp to 1, and then I had the code after the timer started start if(TimerUp ==1).
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)