Difference between revisions of "0010"

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

Latest revision as of 11:51, 2 February 2015

GTA III Vice City San Andreas MULT_INT_VAR_BY_VAL


Description

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

Syntax

0010: [global var] *= [int]
[global var] *= [int]

Parameter

[global var]
Global variable
[int]
Integer value

Keywords

global, variable, var, integer, multiply

See also

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