OnServerStart: 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>onServerStart()</pre> ---- == Arguments == * ''None'' ---- == Example == The following example will print "Hello World!" when the server is started. <sour...")
 
No edit summary
Line 20: Line 20:


Function print() was used in this example.The print() function outputs a formatted string on the console.
Function print() was used in this example.The print() function outputs a formatted string on the console.
== Related Functions ==
{{Scripting/Squirrel/Events/Server_Events}}
[[Category:Scripting/Squirrel/Events/Server_Events]]

Revision as of 22:19, 30 January 2017

Syntax

onServerStart()

Arguments

  • None

Example

The following example will print "Hello World!" when the server is started.

function onServerStart()
{
print( "Hello World!" );
}

Notes

Function print() was used in this example.The print() function outputs a formatted string on the console.

Related Functions