Quote:
Originally Posted by whosyourdaddy
so the pause 0.5 will work for sure in a for loop?
|
No, I was giving you an example of what the code below that would simulate.
To start your for-loop, do this
PHP Code:
new param[2];
param[0] = START_VAL;
param[1] = END_VAL;
//This will start a 'loop' with 0.5 seconds between iterations.
set_task( 0.5 , "YourCode" , 5555 , param , 2 , "b");
Put your for-loop code in here:
PHP Code:
public YourCode(param[2])
{
static iIndex;
if( iIndex < param[0] )
iIndex = param[0];
// your for-loop code here
if( iIndex == param[1] )
remove_task( 5555 );
else
iIndex++;
}
__________________