Quote:
Originally Posted by Liverwiz
so the id parameter in the set_task is the user's id?
|
Not necessarily but it can be and often is. Third parameter of set_task() is the task id but if you are only having one task per person you can use "id" as the task id.
Quote:
Originally Posted by Liverwiz
say i wanted to send another argument to the ssTask function, would i put that in the parameters[] argument?
|
Yes.
Quote:
Originally Posted by Liverwiz
PHP Code:
new sz_command[] = "+jump"
set_task(0.3, "ssTask", id, sz_command, "a", iSsCount)
public ssTask(id, sz_command[])
client_cmd(id, sz_command)
or what is that "parameters" argument there for?
|
I believe you need to do it like this:
PHP Code:
new sz_command[6] = "+jump"
set_task(0.3, "ssTask", id, sz_command, sizeof(sz_command), "a", iSsCount)
public ssTask(sz_command[], id) // this needs to be like this iirc.
{
client_cmd(id, sz_command)
}
Quote:
Originally Posted by Liverwiz
and, to get a better understanding, the '.' before 'flags' and 'repeat' do what?
|
They allow you to submit parameters to the function out of order and skip others as long as the ones you skip have default values.
__________________