Scripting/Squirrel/Client Events/Script::ScriptLoad: Difference between revisions

From Vice City Multiplayer
Jump to navigation Jump to search
Caution icon
This wiki is using an old backup from 2020
Some information may be old/missing
(Created page with "== Syntax == <pre>Script::ScriptLoad()</pre> ---- == Arguments == * ''None'' ---- == Example == The following example will print "Hello World!" when the server is started....")
 
No edit summary
Line 9: Line 9:
== Example ==
== Example ==


The following example will print "Hello World!" when the server is started.
The following example will print "Hello World!" when the client connected to a server.
<source lang=squirrel>
<source lang=squirrel>
function Script::ScriptLoad()
function Script::ScriptLoad()

Revision as of 15:57, 29 April 2016

Syntax

Script::ScriptLoad()

Arguments

  • None

Example

The following example will print "Hello World!" when the client connected to a server.

function Script::ScriptLoad()
{
    Console.Print("Hello World!");
}

Notes

Function Console.Print was used in this example. The Console.Print function outputs a string on the console.