Scripting/Squirrel/Client Events/Script::ScriptLoad: Difference between revisions
Jump to navigation
Jump to search
This wiki is using an old backup from 2020
Some information may be old/missing
No edit summary |
|||
Line 9: | Line 9: | ||
== Example == | == Example == | ||
The following example will | The following example will show up a text in your screen. | ||
<source lang=squirrel> | <source lang=squirrel> | ||
function Script::ScriptLoad() | function Script::ScriptLoad() | ||
{ | { | ||
Label <- GUILabel( VectorScreen(_screen.X * 0.70, _screen.Y * 0.93.2 ), Colour( 25, 250, 0 ), "Canada City Server" ); | |||
Label.FontFlags = GUI_FFLAG_BOLD; | |||
Label.FontSize = _screen.X * 0.032.0; | |||
Label.FontName = "Pricedown"; | |||
} | } | ||
</source> | </source> |
Revision as of 05:24, 26 April 2019
Syntax
Script::ScriptLoad()
Arguments
- None
Example
The following example will show up a text in your screen.
function Script::ScriptLoad()
{
Label <- GUILabel( VectorScreen(_screen.X * 0.70, _screen.Y * 0.93.2 ), Colour( 25, 250, 0 ), "Canada City Server" );
Label.FontFlags = GUI_FFLAG_BOLD;
Label.FontSize = _screen.X * 0.032.0;
Label.FontName = "Pricedown";
}
Notes
Function Console.Print was used in this example. The Console.Print function outputs a string on the console.