Jump to content

Am I doing this correct? Please help me as I am new.


Recommended Posts

Yes, I am confused with something. I was actually writing a list of addresses for my GTA SA cheater program in C++ and I got confused. Look at http://www.gtamodding.com/?title=Memory_Addresses_(SA) - if I take the address of money and declare as DWORD - like this:

 

DWORD pMONEY = (0xB7CE50); //Current money of the player.

 

Will it be effected anyway if I use this someplace else (like will it work in all conditions)? And what is the difference between the usage of that and this (I know its a define constant, but any other differences? like not using this as DWORD):

 

#define pMONEY 0xB7CE50 //Current money of the player.

 

As I am new, I would be sorry for my mistakes and posting in the wrong section.

Edited by Zayan Imran

#define gPlayerMoney (*(unsigned __int32 *)0xB7CE50)

 

void a()

{

gPlayerMoney += 10;

}

Can we do like this:

 

//We will have to include windows.

 

DWORD pMONEY (0xB7CE50);

 

inline void gMoney(int a)

{

return WriteMemoryToProcess(...,..., pMONEY, (a))

}

Edited by Zayan Imran

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • 0 User Currently Viewing
    0 members, 0 Anonymous, 0 Guests

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.