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 == …') |
m (Fail title) |
||
Line 1: | Line 1: | ||
− | {{Squirrel/Title| | + | {{Squirrel/Title|print}} |
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. | 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. | ||
Latest revision as of 04:07, 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.
[edit] Syntax
void print( string text )
[edit] Arguments
- text - This is the text you wish to print to the console.
[edit] Example
This example will print 'Script loaded!' to the console when the scripts have been loaded.
function onScriptLoad() { print( "Script loaded!" ); return 1; }
[edit] Notes
The event onScriptLoad was used in this example. More info about it in the corresponding page.