Difference between revisions of "0014"

From GTAMods Wiki
Jump to navigation Jump to search
(Created page with '{{OpCode | ini = 0014=2,%1d% /= %2d% | description = Divides a the value of a specific global variable by an interger value. | p1 = global variable | p2 …')
 
 
Line 1: Line 1:
{{OpCode
+
{{Icon|trilogy}} '''DIV_INT_VAR_BY_VAL'''
| ini        = 0014=2,%1d% /= %2d%
+
<hr />
| description = Divides a the value of a specific global variable by an interger value
+
'''Description'''
| p1          = global variable
+
: Divides the value stored in the global variable by the specified integer value
| p2          = an integer value
+
'''Syntax'''
| game        = [[GTA 3]], [[Vice City]], [[San Andreas]]
+
: 0014: [''global var''] /= [''int'']
}}
+
: [''global var''] /= [''int'']
This opcode divides a the value of a specific global variable by an interger value
+
'''Parameter'''
 +
: [''global var'']
 +
:: Global variable
 +
: [''int'']
 +
:: Integer value
  
==Sanny Builder Example==
+
== Keywords ==
 +
global, variable, var, integer, div
  
<source lang="scm">0014: $HJ_TWOWHEELS_TIME /= 1000</source>
+
== See also ==
 +
* [[0015]] &ndash; divs global var by flt
 +
* [[0016]] &ndash; divs local var by int
 +
* [[0017]] &ndash; divs local var by flt
  
==Keywords==
+
[[Category:OpCodes]][[Category:Math OpCodes]]
global, variable, integer value, divide 
 
 
 
[[Category:Math_OpCodes]]
 

Latest revision as of 15:11, 3 February 2015

GTA III Vice City San Andreas DIV_INT_VAR_BY_VAL


Description

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

Syntax

0014: [global var] /= [int]
[global var] /= [int]

Parameter

[global var]
Global variable
[int]
Integer value

Keywords

global, variable, var, integer, div

See also

  • 0015 – divs global var by flt
  • 0016 – divs local var by int
  • 0017 – divs local var by flt