Blockland Forums > Modification Help
tick functions
Gartanium:
How do I create a function that starts a tick system? For example:
---------------------------------------------------
function start tick (ticks every 5 minutes)
---------------------------------------------------
-------------------
function ontick
messageall hi
-------------------
I have tried to use loops for this but my main problem is that I don't know how to delay loops.
otto-san:
i asked the same thing a while back
http://forum.blockland.us/index.php?topic=123874.0
Gartanium:
ty
Fatcorny:
int main()
{
cout << "Tick initiated" << endl;
system("pause", 60000);
main();
return(0);
}
That should do it!
Fatcorny:
lol. Srry. Wrong coding. That was C++. Don't do that.
function tick()
{
messageAll('', "Hi!");
}
I have no idea how to make the loops. I'm just a beginner TSer.