Scripting/Squirrel/Client Functions/print

From Vice City Multiplayer
Revision as of 05:07, 14 July 2016 by Xmair (talk | contribs) (Created page with "This function prints stuff in the debug file present in %appdata%\VCMP\04Beta\debuglog.txt. == Syntax == <pre>print( szText )</pre> == Arguments == * '''STRING''' '''szTex...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Caution icon
This wiki is using an old backup from 2020
Some information may be old/missing

This function prints stuff in the debug file present in %appdata%\VCMP\04Beta\debuglog.txt.

Syntax

print( szText )

Arguments

  • STRING szText The message to print.

Example

This will print "Client side scripts loaded" to the debug log when the client side scripts are loaded.

function Script::ScriptLoad( ) {

print( "Client side scripts loaded." );

}

Notes

The event Script::ScriptLoad was used in in this example. More info about them in the corresponding pages.