12.08.2011, 20:43
Read the params.
SetTimerEx("message", 1000, false, "is", 1337, "hello!")
funcname[] Name of the function to call.
interval Interval in milliseconds.
repeating Boolean if the timer should occur repeatedly or only once
format[] Special format indicating the types of values the timer will carry
{Float,_}:... Indefinite number of arguments to pass
first param is for the function name, next is for the time, then if its going to repeat, then the format... similar to sscanf, if the header of your function was Kill(playerid) then you'd need to do
SetTimerEx("Kill", 1000, true, "i", playerid);
i being integer, and playerid being the integer we want to pass onto the function
SetTimerEx("message", 1000, false, "is", 1337, "hello!")
funcname[] Name of the function to call.
interval Interval in milliseconds.
repeating Boolean if the timer should occur repeatedly or only once
format[] Special format indicating the types of values the timer will carry
{Float,_}:... Indefinite number of arguments to pass
first param is for the function name, next is for the time, then if its going to repeat, then the format... similar to sscanf, if the header of your function was Kill(playerid) then you'd need to do
SetTimerEx("Kill", 1000, true, "i", playerid);
i being integer, and playerid being the integer we want to pass onto the function