print

From Liberty Unleashed Wiki
Jump to: navigation, search
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.

Syntax

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

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

Notes

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

Related Functions

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox