Difference between revisions of "03A4"

From GTAMods Wiki
Jump to navigation Jump to search
m
 
Line 1: Line 1:
{{Icon|t}} '''SCRIPT_NAME'''
+
{{OpCode
<hr />
+
| games      = {{Icon|t}}
'''Description'''
+
| command    = SCRIPT_NAME
: Names the [[thread|script]]
+
| description = Names the [[script]]
'''Syntax'''
+
| syntax1    = 03A4: name_thread '[''string'']'
: 03A4: name_thread '[''string'']'
+
| syntax2    = thread '[''string'']'
: thread '[''string'']'
+
| p1t        = [''string'']
'''Parameter'''
+
| p1d        = 7-character string
: [''string'']
+
}}
:: 7-character string
 
  
This opcode names the current [[thread|script]]. Any upper case letters (A-Z) are converted to lower case by the game internally. By default, any new script is named ''noname'' but this opcode can change that. Opcode [[0459]] can be used to end scripts with this given name.
+
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.
 
In [[GTA3script]] there cannot be two scripts with the same name in a given multifile, in such case the compiler will emit an error.
Line 16: Line 15:
 
== Keywords ==
 
== Keywords ==
 
thread, script, name
 
thread, script, name
 
[[Category:OpCodes]]
 

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