> > > >

set_task_ex | amxmisc | AMX X Documentation

Includes

    1. Stocks
    1. Natives
    2. Forwards
    1. Natives
    2. Stocks
    1. Natives
    2. Stocks
    1. Natives
    1. Natives
    2. Stocks
    1. Natives
    1. Natives
    2. Forwards
    3. Stocks
    1. Natives
    2. Forwards
    1. Natives
    1. Natives
    1. Natives
    2. Stocks
    1. Natives
    2. Forwards
    1. Natives
    1. Natives
    2. Forwards
    1. Natives
    2. Forwards
    1. Stocks
    1. Natives
    1. Natives
    2. Stocks
    1. Stocks
    1. Stocks
    1. Natives
    1. Natives
    2. Forwards
    3. Stocks
    1. Natives
    1. Natives
    1. Natives
    1. Natives
    2. Stocks
    1. Natives
    1. Natives
    1. Stocks
    1. Natives
    1. Natives
    1. Natives
    2. Forwards
    1. Natives
    1. Natives
    1. Natives
    1. Natives
    1. Natives
    1. Natives
    1. Natives
    2. Forwards
    1. Natives
    2. Stocks
    1. Natives
    1. Natives
    1. Natives
    2. Stocks
    1. Natives
    1. Stocks
    1. Natives
    1. Natives
    1. Natives
    1. Natives
    2. Forwards
    3. Stocks
    1. Stocks
    1. Natives
    2. Forwards
    3. Stocks
    1. Natives
    1. Natives
    2. Forwards
    3. Stocks
    1. Natives
    1. Natives
    2. Stocks
    1. Stocks

set_task_ex

Syntax
									stock set_task_ex(Float:time, const function[], id = 0, const any:parameter[] = "", len = 0, SetTaskFlags:flags = SetTask_Once, repeat = 0)
									{
     new strFlags[2]; // There should never be a need to set more than 1 flag
     get_flags(_:flags, strFlags, charsmax(strFlags));
     set_task(time, function, id, parameter, len, strFlags, repeat);
}
								
Variable Description
time
Time interval to assign
function
Function to execute
id
Task id to assign
parameter
Data to pass through to callback
len
Size of data
flags
Optional flags (enum SetTaskFlags); valid flags are:
  SetTask_Once - Execute callback once (Default)
  SetTask_RepeatTimes - repeat timer a set amount of times
  SetTask_Repeat - loop indefinitely until timer is stopped
  SetTask_AfterMapStart - time interval is treated as absolute
      time after map start
  SetTask_BeforeMapChange - time interval is treated as absolute
      time before map change
repeat
If the SetTask_RepeatTimes flag is set, the task will be repeated this
many times

Description
Calls a function after a specified time has elapsed.

Return
This function has no return value.
> > > >