Hello,
I want to pass some client data through a task from FM_UpdateClientData hook.
I've tried this, but compiler seems not to be happy and it doesn't work:
Code:
new CDTaskData[3];
CDTaskData[0] = iPlayer;
CDTaskData[1] = CD_ID;
CDTaskData[2] = CD_Handle;
set_task(0.1, "task_reset_cd", iPlayer + TASK_DEPLOY, CDTaskData, sizeof(CDTaskData));
task_reset_cd:
Code:
public task_reset_cd
(CDTaskData
[])
{
set_cd(CDTaskData[2], CDTaskData[1], 1); /* Here the compiler is not happy */
}
Compiler not happy:
PHP Code:
warning 213: tag mismatch =((
__________________