Započeo BitchLasagnazz
•6. Jul 2019.• ZaključanoTimerFix
2,041
pregleda
5
postova
Kingpin
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
240 / 250 XP
Početnik(0)
1,270
Postovi:
81
Teme:
Pridružio se:Jan. 2018
6. Jul 2019.
Ime plugina: Timer Fix
Da li ste vi napravili plugin: njok
Ime kreatora: KashCherry
Opis(obavezno): Plugin cini tajmere preciznijim
Download(obavezno mediafire/sendspace link): https://github.com/KashCherry/Timer-Fix-plugin/releases]
Da li ste vi napravili plugin: njok
Ime kreatora: KashCherry
Opis(obavezno): Plugin cini tajmere preciznijim
NATIVE
native SetTimer(funcname[], interval, bool:repeat);
native SetTimerEx(funcname[], interval, bool:repeat, const format[], {Float,_}:...);
native KillTimer(const id);
native KillAllTimers();
native IsValidTimer(timerid);
native GetTimerInterval(timerid);
native SetTimerInterval(timerid, interval); PRIMER
#include
new num = 0;
new timer;
main() {
timer = SetTimer("callback",1000,true)
}
forward callback();
public callback() {
if(++num >= 5) {
if(IsValidTimer(timer)) KillTimer(timer);
SetTimerEx("callbackEx",1000,false,"d",num);
}
}
forward callbackEx(num);
public callbackEx(num) {
printf("Num: %d",num);
KillAllTimers();
} Download(obavezno mediafire/sendspace link): https://github.com/KashCherry/Timer-Fix-plugin/releases]
Kingpin
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
240 / 250 XP
Početnik(0)
1,270
Postovi:
81
Teme:
Pridružio se:Jan. 2018
Kingpin
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosAktivan Član
2 / 250 XP
Početnik(1)
1,147
Postovi:
38
Teme:
Pridružio se:Feb. 2010
6. Jul 2019.
Something to keep in mind is this include causes PAWN to work harder; therefore, you shouldn't have loads of timers running at the same time as it will require higher CPU usage.
Znajuci balkance i9 9900x ce im malo biti xD
Znajuci balkance i9 9900x ce im malo biti xD
Kingpin
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
240 / 250 XP
Početnik(0)
1,270
Postovi:
81
Teme:
Pridružio se:Jan. 2018
6. Jul 2019.
(ã£â—”â—¡â—”)㣠♥ bunta ♥ wrote on July 6, 2019, 12:56 pm:
Something to keep in mind is this include causes PAWN to work harder; therefore, you shouldn't have loads of timers running at the same time as it will require higher CPU usage.
Znajuci balkance i9 9900x ce im malo biti xD
Znajuci balkance i9 9900x ce im malo biti xD
AHAHHAHAHHAHAHAHHAHAHA A BUKVALNOOO XD
Morate biti prijavljeni da biste odgovorili na ovu temu.
Prijava