I'm using this:
PHP Code:
public function1(id)
{
new taskArguments[4];
set_task(0.5, "other", id, taskArguments, 4);
}
public other(id, taskArguments[])
{
console_print(1, "[0] %i [1] %i [2] %i [3] %i", taskArguments[0], taskArguments[1], taskArguments[2], taskArguments[3]);
return PLUGIN_HANDLED;
}
All these values should read zero, but I'm getting seemingly random numbers in huge ranges; 78 or 48199984 or whatever. The only thing that changes the values is what I set as "id" in my set_task. From 0 to 1 to 2 I get a huge variation, and it never properly sends the argument array. Any ideas?