This function prints text to the server console. If your server has script logging on the text will also be printed to the log file.
- void print( string text )
- text - This is the text you wish to print to the console.
This example will print 'Script loaded!' to the console when the scripts have been loaded.
- function onScriptLoad()
- print( "Script loaded!" );
- return 1;
The event onScriptLoad was used in this example. More info about it in the corresponding page.