Jump to content
  • 0

Cum fac un timer fara sa se opreasca


zyghy

Question

3 answers to this question

Recommended Posts

http://wiki.sa-mp.com/wiki/SetTimer

forwarnd TimerulMeu();
SetTimer("TimerulMeu", 1000,  false); //1000 = 1 Secunda
public TimerulMeu()
{
    //Codul...
}
Ultimul parametru al Timerului il pui "false" daca vrei ca el sa ruleze doar o singura data functia respectiva.
forwarnd TimerulMeu();
SetTimer("TimerulMeu", 1000,  true); //1000 = 1 Secunda
public TimerulMeu()
{
    //Codul...
}

Sau "true" daca vrei ca timer-ul respectiv sa ruleze o anumita functie la fiecare Secunda in cazul exemplului de mai sus...

3r4AlPA.png

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.