Blockland Forums > Modification Help
Schedule problems
TheBlackParrot:
--- Quote from: Plornt on July 23, 2010, 01:50:50 PM ---Then you arnt using it right.
--- Code: ---function servercmdmyBrickcount(%client)
{
MessageClient(%client,'',"Brickcount:" SPC %client.brickGroup.getCount());
}
--- End code ---
--- End quote ---
But I need it to show that to everyone. :\
TheBlackParrot:
Nothing about the schedule not repeating? It only delays.
Plornt:
To make it repeat you just call it again
--- Code: ---function servercmdMyBrickCount(%client)
{
MessageAll('',"Brickcount:" SPC %client.brickGroup.getCount());
$Repeat = schedule(%delay,0,servercmdMyBrickCount,%client);
}
--- End code ---
Then use cancel($Repeat); to cancel it.