Quote:
Originally Posted by Depresie
Well then what am i doing wrong in this case?
PHP Code:
public function_message_status(const szMessage[], iTask) { set_task(1.0, "function_message_status", 1000, szMessage, sizeof(szMessage)) }
Code:
indeterminate array size in "sizeof" expression (symbol "")
|
You are using "sizeof" on an array/string declared with zero length which is not valid. You probably need to use strlen()+1 to get the run-time size of the data or pass the size of the array as a parameter of function_message_status().
Quote:
Originally Posted by Depresie
There are some cases where it would be great to have a function loop param, in order to avoid to handle some stuff via more functions
|
What in the world are you talking about? Have you read the documentation? You can have the task repeat for specific number of times are indefinitely. I figured you already knew this since it's clearly in the documentation and that you were asking to have the function execute immediately AND also repeat.
__________________