Difference between revisions of "0012"

From GTAMods Wiki
Jump to navigation Jump to search
(Created page with '{{OpCode | ini = 0012=2,%1d% *= %2d% | description = Multiplies an integer value with a local variable. | p1 = local variable | p2 = an integer value …')
 
 
Line 1: Line 1:
{{OpCode
+
{{Icon|trilogy}} '''MULT_INT_LVAR_BY_VAL'''
| ini        = 0012=2,%1d% *= %2d%
+
<hr />
| description = Multiplies an integer value with a local variable
+
'''Description'''
| p1          = local variable
+
: Multiplies the value stored in the local variable by the specified integer value
| p2          = an integer value
+
'''Syntax'''
| game        = [[GTA 3]], [[Vice City]], [[San Andreas]]
+
: 0012: [''local var''] *= [''int'']
}}
+
: [''local var''] *= [''int'']
This opcode multiplies an integer value with the value of a specific local variable. 
+
'''Parameter'''
 +
: [''local var'']
 +
:: Local variable
 +
: [''int'']
 +
:: Integer value
  
==Sanny Builder Example==
+
== Keywords ==
 +
local, variable, var, integer, multiply
  
<source lang="scm">0012: 22@ *= -1</source>
+
== See also ==
 +
* [[0010]] &ndash; mults global var by int
 +
* [[0011]] &ndash; mults global var by flt
 +
* [[0013]] &ndash; mults local var by flt
  
==Keywords==
+
[[Category:OpCodes]][[Category:Math OpCodes]]
local, variable, integer value, multiply 
 
 
 
[[Category:Math_OpCodes]]
 

Latest revision as of 11:52, 2 February 2015

GTA III Vice City San Andreas MULT_INT_LVAR_BY_VAL


Description

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

Syntax

0012: [local var] *= [int]
[local var] *= [int]

Parameter

[local var]
Local variable
[int]
Integer value

Keywords

local, variable, var, integer, multiply

See also

  • 0010 – mults global var by int
  • 0011 – mults global var by flt
  • 0013 – mults local var by flt