Quote:
Originally Posted by CodeMaster
Dude all that I knew from before -.-
All that I asked was can I get first free id (I use multiple tasks), and can I send params directly without making an array...
Anyone else?
|
The usual way is to use defines for the multiple tasks and add/subtract them from the player ID.
E.g:
Code:
#define TASK1_ID 1000
whatever(id)
{
set_task(1.0, "Task1", id + TASK1_ID)
}
public Task1(id)
{
id -= TASK1_ID
// blah
}
__________________