Label: Difference between revisions

mNo edit summary
 
No edit summary
 
(2 intermediate revisions by 2 users not shown)
Line 15: Line 15:
Sanny Builder also has a feature to display a list of all labels used in source code when you press a @ button.
Sanny Builder also has a feature to display a list of all labels used in source code when you press a @ button.


[[Category:Mission_Scripting]]{{fdl}}
{{fdl}}
 
{{modding}}
[[Category:Modifications]]
[[Category:Mission Script]]

Latest revision as of 13:42, 18 July 2010

Label is a part of almost any script. It is a sequence of characters that identifies a specific location within the script. In Sanny Builder labels are denoted with a : (colon sign) as the first character.

A label name must contain only letters, digits and underscore sign (_).

Example:

<source lang="scm">:Label</source>

Labels are widely used in scripts in unconditional and conditional jumps. To jump to specific label, you must use its name with a @ (at sign) as the first character.

Example:

<source lang="scm">0002: jump @Label</source>

Sanny Builder also has a feature to display a list of all labels used in source code when you press a @ button.

Copyrighted

This page is licensed under the GNU Free Documentation Licence. This page has a separate license to the CC-BY-SA that applies to most of Grand Theft Wiki.

The full text of the GNU FDL v1.2 is here. Click the "History" button to see the full list of authors. See Grand Theft Wiki:Copyright for more detail on our copyright policy.

GNU Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.
See Grand Theft Wiki:Copyright for more information.