Difference between revisions of "03A4"

From GTAMods Wiki
Jump to navigation Jump to search
(New page: <code>03a4=1,%1s% </code><br> '''Description''': Gives a new name for thread<br> '''Parameter 1''': short string (8 bytes)<br> '''Supports''': GTA3, Vice City, San Andreas<br> This opcode...)
 
m
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<code>03a4=1,%1s% </code><br>
+
{{OpCode
'''Description''': Gives a new name for thread<br>
+
| games      = {{Icon|t}}
'''Parameter 1''': short string (8 bytes)<br>
+
| command    = SCRIPT_NAME
'''Supports''': GTA3, Vice City, San Andreas<br>
+
| description = Names the [[script]]
 +
| syntax1    = 03A4: name_thread '[''string'']'
 +
| syntax2    = thread '[''string'']'
 +
| p1t        = [''string'']
 +
| p1d        = 7-character string
 +
}}
  
This opcode gives a new name for the current [[thread]]. By default, any new thread get name ''NONAME'', but this opcode could change it. You can use the given name later to end the thread with opcode [[0459]] (not in GTA 3). Thread name should be less than 8 letters (7 max).
+
By default, any new script is named ''noname''. This opcode renames the current [[script]] to the one specified. Any upper case letters (A-Z) are converted to lower case by the game internally. Opcode [[0459]] can be used to end scripts with this given name.
  
==Keywords==
+
In [[GTA3script]] there cannot be two scripts with the same name in a given multifile, in such case the compiler will emit an error.
thread, name
 
  
[[Category:OpCodes]]
+
== Keywords ==
 +
thread, script, name

Latest revision as of 03:27, 28 January 2017

GTA III Vice City San Andreas SCRIPT_NAME


Description
Names the script
Syntax
03A4: name_thread '[string]'
thread '[string]'
Parameter
[string]
7-character string

By default, any new script is named noname. This opcode renames the current script to the one specified. Any upper case letters (A-Z) are converted to lower case by the game internally. Opcode 0459 can be used to end scripts with this given name.

In GTA3script there cannot be two scripts with the same name in a given multifile, in such case the compiler will emit an error.

Keywords

thread, script, name