Difference between revisions of "0008"

From GTAMods Wiki
Jump to navigation Jump to search
(updating page)
Line 1: Line 1:
{{OpCode
+
{{Icon|trilogy}}
| ini        = 0008=2,%1d% += %2d%
+
<hr />
| description = Adds an integer value to a global variable
+
'''Description'''
| p1          = global variable
+
: Adds the value stored in the global variable by the specified integer
| 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
  
<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]]
 

Revision as of 18:51, 20 August 2011

GTA III Vice City San Andreas


Description

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

Syntax

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

Parameter

[global var]
Global variable
[int]
Integer value

Keywords

global, variable, var, integer, add

See also

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