Revision [461]

This is an old revision of onTimeout made by LightShow on 2009-05-19 16:22:46.
 
Usage

Syntax: function onTimeout() { }

Explanation

The onTimeout event is called when the time set by setTimer(int) expires.

Examples

function onCreated()
{
  setTimer(5);
}

function onTimeout()
{
  echo("Hello World!");
}

... Will output "Hello World!" in the RC chat (serverside) or the F2 window (clientside) after waiting 5 seconds.

function onCreated()
{
  setTimer(5);
}

function onTimeout()
{
  echo("Hello World!");
  setTimer(5);
}

... Will do the same as above, but will repeat itself every 5 seconds.

Categories

CategoryFunctionEvent

There are no comments on this page. [Add comment]

Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki
⚡ WEB1 (144.76.42.176) — Testing Environment ⚡