Difference between revisions of "000E"

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

Latest revision as of 11:29, 2 February 2015

GTA III Vice City San Andreas SUB_VAL_FROM_INT_LVAR


Description

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

Syntax

000E: [local var] -= [int]
[local var] -= [int]

Parameter

[local var]
Local variable
[int]
Integer value

Keywords

local, variable, var, integer, sub

See also

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