Squirrel/Server/Functions/Misc/print

From Liberty Unleashed Wiki
(Difference between revisions)
Jump to: navigation, search
(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|LoadModule}}
+
{{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

Home   |   Squirrel Scripting   |   Server Functions   |   Server Events   |   Client Functions   |   Client Events

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

  1. 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.

  1.  
  2. function onScriptLoad()
  3. {
  4. print( "Script loaded!" );
  5. return 1;
  6. }
  7.  

[edit] Notes

The event onScriptLoad was used in this example. More info about it in the corresponding page.

[edit] Related Functions

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox