+ASGOOD Postat Ianuarie 16, 2018 Raport Postat Ianuarie 16, 2018 Multa lume ma intreaba: " - Care este difenta dintre 'SetTimer' si 'SetTimerEx' ? " Raspuns: Pai, variabila SetTimer porneste un timer global(pentru toti playeri online), iar SetTimerEx porneste un countdown pentru un singur player, exemplu: forward mesajrandom(); public OnGameModeInit() { print("Pornind timerul..."); SetTimer("mesajrandom", 10000, false); // Set a timer of 10000 miliseconds (10 seconds) } public mesajrandom() { print("Au trecut 10 secunde."); } forward mesajrandom(); public OnGameModeInit() { print("Pornind timerul..."); SetTimerEx("mesajrandom", 10000, false, "i", playerid); // Set a timer of 10000 miliseconds (10 seconds) } public mesajrandom() { print("Au trecut 10 secunde."); }
Johnny # Postat Iunie 19, 2018 Raport Postat Iunie 19, 2018 SetTimer = Pentru OnGameModeInit / Global SetTimerEx = Pentru o singura persoana sau chiar si pentru mai multe daca este folosita intr-un stadiu de i++ / foreach. SetTimerEx se foloseste in special la comenzi / functii. ex: SetTimerEx("Functia care o va activa / deschide", timpul, 0, "aici e ca la sscanf / i / u / d / x s.a.m.d", playerid sau jucator); Daviid 1
Postări Recomandate