Squirrel/Server/Functions/Misc/print
From Liberty Unleashed Wiki
(Difference between revisions)
(Created page with '{{Squirrel/Title|LoadModule}} 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. == Syntax == …') |
Revision as of 04:03, 25 September 2010
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.
Syntax
void print( string text )
Arguments
- text - This is the text you wish to print to the console.
Example
This example will print 'Script loaded!' to the console when the scripts have been loaded.
function onScriptLoad() { print( "Script loaded!" ); return 1; }
Notes
The event onScriptLoad was used in this example. More info about it in the corresponding page.