0004

From GTAMods Wiki
Revision as of 20:07, 17 February 2007 by Spaceeinstein (talk | contribs) (My INI is now disontinued.)
Jump to navigation Jump to search

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)