can i random SetTimer?
#1

can i random SetTimer how?
i want random time of SetTimer around 1000-10000

SetTimer("message", 1000, false);


public message(playerid)
{
print("test....");
}


Please help, thanks
Reply
#2

This should work:
PHP код:

SetTimer
("message"RandomEx(100010000), false); 
forward message();
public 
message() // There should be no "playerid" in the brackets! If you want to use playerid, u gotta use SetTimerEx
{
print(
"test....");
}
RandomEx(minmax)
{
    return 
random(max min) + min;

If you don't understand the code, feel free to ask me an explanation of it.
Reply
#3

Thanks you bro, it work +REP
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)