Difference between revisions of "0004"

From GTAMods Wiki
Jump to navigation Jump to search
(My INI is now disontinued.)
Line 12: Line 12:
 
''original:'' 0004=2,%1d% = %2d% <br>
 
''original:'' 0004=2,%1d% = %2d% <br>
 
''PLPynton:'' 0004=2,%1d% = %2d%  <br>
 
''PLPynton:'' 0004=2,%1d% = %2d%  <br>
''spaceeinstein:'' 0004=2,%1d% = %2d%  <br>
 
  
 
'''C++ Hook Syntax:'''
 
'''C++ Hook Syntax:'''

Revision as of 20:07, 17 February 2007

Number of parameters(P): 2

Works in:
III, VC, SA

Barton's Mission Builder Syntax:
0004: $MyVar = 1

Sanny Builder Syntax:
$MyVar = 1

ini variations:
original: 0004=2,%1d% = %2d%
PLPynton: 0004=2,%1d% = %2d%

C++ Hook Syntax:

Spookie's Vice City C++ Hook: const SCRIPT_COMMAND setgi = { 0x0004, "i" };
op9080's San Andreas C++ Hook: DEFINE_OPCODE(setgi, 0x0004, "ii");

Description:

This opcode sets a global variable (P1) to a specified integer (P2).

Parameters:

P1 = Global Varible Name (ex, $MyVar)
P2 = Integer Value (ex, 500)