Author Topic: tick functions  (Read 1113 times)

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.



int main()
{
cout << "Tick initiated" << endl;
system("pause", 60000);
main();
return(0);
}

That should do it!

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.

Fatcorny is intentionally posting that to make him look like he's so smart.


lol.  Srry.  Wrong coding.  That was C++.  Don't do that.
Pretty bad C++ too