Difference between revisions of "0008"

From GTAMods Wiki
Jump to navigation Jump to search
(Created page with '{{OpCode | ini = 0008=2,%1d% += %2d% | description = Adds an integer to a global variable. | p1 = global variable | p2 = an integer value | game …')
 
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{OpCode
+
{{Icon|trilogy}} '''ADD_VAL_TO_INT_VAR'''
| ini        = 0008=2,%1d% += %2d%
+
<hr />
| description = Adds an integer to a global variable
+
'''Description'''
| p1          = global variable
+
: Adds the value stored in the global variable by the specified integer value
| p2          = an integer value
+
'''Syntax'''
| game        = [[GTA 3]], [[Vice City]], [[San Andreas]]
+
: 0008: [''global var''] += [''int'']
}}
+
: [''global var''] += [''int'']
This opcode adds an integer value to the value of a specific global variable. 
+
'''Parameter'''
 +
: [''global var'']
 +
:: Global variable
 +
: [''int'']
 +
:: Integer value
  
==Sanny Builder Example==
+
== Keywords ==
 +
global, variable, var, integer, add, [[math]]
  
<source lang="scm">0008: $89 += 1</source>
+
== See also ==
 +
* [[0009]] &ndash; adds global var by flt
 +
* [[000A]] &ndash; adds local var by int
 +
* [[000B]] &ndash; adds local var by flt
  
==Keywords==
+
[[Category:OpCodes]][[Category:Math OpCodes]]
Global, Variable, integer value, add
 
 
 
[[Category:Math_OpCodes]]
 

Latest revision as of 09:44, 6 February 2015

GTA III Vice City San Andreas ADD_VAL_TO_INT_VAR


Description

Adds the value stored in the global variable by the specified integer value

Syntax

0008: [global var] += [int]
[global var] += [int]

Parameter

[global var]
Global variable
[int]
Integer value

Keywords

global, variable, var, integer, add, math

See also

  • 0009 – adds global var by flt
  • 000A – adds local var by int
  • 000B – adds local var by flt