Because taskid is the task's ID, in fysiks' example 12345 is the task id.
For strings, you can make an array containing all kinds of stuff.
PHP Code:
new data[33]
get_user_name(id, data, 31) /* a string */
data[32] = 53 /* a number */
set_task(1.0, "function", 12345, data, sizeof data)
PHP Code:
public function(data[], taskid)
{
new szName[32]
copy(szName, charsmax(szName), data) /* will copy the first 32 chars of data */
new iVal = data[32] /* your integer */
}
Not tested, I could be off on the array indexes :/
Hmm, but I belive you can make that better with hacked enums... I'll leave that for others that have experience with these.
__________________