Jump to content

Memory read problem in SA


DaRk_St0rM

Recommended Posts

Hy guys, I was reading ZAZ's tuto about memory read and the jump ramp example worked, but I'm trying to do a cheat that creates a Body Armour Pickup by tiping 'ARMOUR'

 

I coded it like this:

 

{$CLEO .cs}thread 'cheat':Cheatcode_1wait 00A8D: 1@ = read_memory 0x00969110 size 2 virtual_protect 0 //0A8D: 2@ = read_memory 0x00969114 size 4 virtual_protect 0 //if  and04A4:   1@ == 0x5552 04A4:   2@ == 0x41524D4F004D: jump_if_false @Cheatcode_103E5: text_box 'CHEAT1'0109: player $PLAYER_CHAR money += 10000000A8C: write_memory 0x00969110 size 2 value 0 virtual_protect 0 //clear the buffer0A8C: write_memory 0x00969114 size 4 value 0 virtual_protect 0 //clear the bufferPickup.Create(0@, 1242, 3, 2495.1387, -1680.1288, 13.3388)0002: jump @Cheatcode_1

 

But for some reason, I have to type 'ARMOURUR' to activate the cheat. It seems that it reads 4 bytes (shouldn't it be bits anyway, since a byte is 8 bits?) instead of 2.

Can anybody help me?

Link to comment
Share on other sites

try this

 

{$CLEO .cs}thread 'cheat':Cheatcode_1//ARMOURwait 00A8D: 1@ = read_memory 0x00969110 size 4 virtual_protect 0 //0A8D: 2@ = read_memory 0x00969114 size 2 virtual_protect 0 //if  and04A4:   1@ == 0x4D4F5552//MOUR04A4:   2@ == 0x4152//AR004D: jump_if_false @Cheatcode_103E5: text_box 'CHEAT1'0109: player $PLAYER_CHAR money += 10000000A8C: write_memory 0x00969110 size 4 value 0 virtual_protect 0 //clear the buffer0A8C: write_memory 0x00969114 size 2 value 0 virtual_protect 0 //clear the bufferPickup.Create(0@, 1242, 3, 2495.1387, -1680.1288, 13.3388)0002: jump @Cheatcode_1

 

Link to comment
Share on other sites

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
  • 1 User Currently Viewing
    0 members, 0 Anonymous, 1 Guest

×
×
  • Create New...

Important Information

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