27.10.2010, 15:11
It's still used for memory addresses and stuff.
Let's say you want to set player's money, but since you don't have GTA:SA's source, you need the memory address where GTA stores money.
(BYTE is an unsigned char)
So basically, if that memory address was real, it would set the player's money to 1337.
Opcodes are also used in SA:MP.
Let's say you want to set player's money, but since you don't have GTA:SA's source, you need the memory address where GTA stores money.
Код:
*(BYTE *)0x123456 = 1337;
So basically, if that memory address was real, it would set the player's money to 1337.
Opcodes are also used in SA:MP.