Difference between revisions of "000C"

From GTAMods Wiki
Jump to navigation Jump to search
(Created page with '{{OpCode | ini = 000C=2,%1d% -= %2d% | description = Deducts an integer value from a global variable. | p1 = global variable | p2 = an integer value …')
 
 
Line 1: Line 1:
{{OpCode
+
{{Icon|trilogy}} '''SUB_VAL_FROM_INT_VAR'''
| ini        = 000C=2,%1d% -= %2d%
+
<hr />
| description = Deducts  an integer value from a global variable
+
'''Description'''
| p1          = global variable
+
: Subtracts the specified integer from the value stored in the global variable
| p2          = an integer value
+
'''Syntax'''
| game        = [[GTA 3]], [[Vice City]], [[San Andreas]]
+
: 000C: [''global var''] -= [''int'']
}}
+
: [''global var''] -= [''int'']
This opcode deducts an integer value from the value of a specific global variable. 
+
'''Parameter'''
 +
: [''global var'']
 +
:: Global variable
 +
: [''int'']
 +
:: Integer value
  
==Sanny Builder Example==
+
== Keywords ==
 +
global, variable, var, integer, sub
  
<source lang="scm">000C: $1020 -= 1</source>
+
== See also ==
 +
* [[000D]] &ndash; subs flt from global var
 +
* [[000E]] &ndash; subs int from local var
 +
* [[000F]] &ndash; subs flt from local var
  
==Keywords==
+
[[Category:OpCodes]][[Category:Math OpCodes]]
global, variable, integer value, deduct
 
 
 
[[Category:Math_OpCodes]]
 

Latest revision as of 11:26, 2 February 2015

GTA III Vice City San Andreas SUB_VAL_FROM_INT_VAR


Description

Subtracts the specified integer from the value stored in the global variable

Syntax

000C: [global var] -= [int]
[global var] -= [int]

Parameter

[global var]
Global variable
[int]
Integer value

Keywords

global, variable, var, integer, sub

See also

  • 000D – subs flt from global var
  • 000E – subs int from local var
  • 000F – subs flt from local var