Difference between revisions of "000A"

From GTAMods Wiki
Jump to navigation Jump to search
(Created page with '{{OpCode | ini = 000A=2,%1d% = %2d% | description = Stores a integer value into a local variable. | p1 = local variable | p2 = an integer value | game…')
 
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{OpCode
+
{{Icon|trilogy}} '''ADD_VAL_TO_INT_LVAR'''
| ini        = 000A=2,%1d% = %2d%
+
<hr />
| description = Stores a integer value into a local variable. 
+
'''Description'''
| p1          = local variable
+
: Adds the value stored in the local variable by the specified integer value
| p2          = an integer value
+
'''Syntax'''
| game        = [[GTA 3]], [[Vice City]], [[San Andreas]]
+
: 000A: [''local var''] += [''int'']
}}
+
: [''local var''] += [''int'']
This opcode stores an integer value into a local variable.
+
'''Parameter'''
 +
: [''local var'']
 +
:: Local variable
 +
: [''int'']
 +
:: Integer value
  
==Sanny Builder Example==
+
== Keywords ==
 +
local, variable, var, int, add, [[math]]
  
<source lang="scm">000A: 3@ += 3000</source>
+
== See also ==
 +
* [[0008]] &ndash; adds global var by int
 +
* [[0009]] &ndash; adds global var by flt
 +
* [[000B]] &ndash; adds local var by flt
  
==Keywords==
+
[[Category:OpCodes]][[Category:Math OpCodes]]
Local, 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_LVAR


Description

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

Syntax

000A: [local var] += [int]
[local var] += [int]

Parameter

[local var]
Local variable
[int]
Integer value

Keywords

local, variable, var, int, add, math

See also

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