View Single Post
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 11-19-2017 , 22:15   Re: [REQUEST] set_task improvement
Reply With Quote #4

Quote:
Originally Posted by Depresie View Post
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"1000szMessagesizeof(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 View Post
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.
__________________

Last edited by fysiks; 11-19-2017 at 22:16.
fysiks is offline