#1 Re: GTA Modding » a problem when write_memory with -1 » 18-07-2011 11:37

Deji wrote:

What's the value of 0@?

it's a buffer in the cs file.

i think it is because of an unsigned extension (movzx)

#2 Re: GTA Modding » a problem when write_memory with -1 » 17-07-2011 17:27

Seemann wrote:

Did you try?

05DF: write_memory 0@ size 4 value -1 virtual_protect 0

i did but it didn't work

#3 GTA Modding » a problem when write_memory with -1 » 16-07-2011 11:47

fm_bill
Replies: 4

Hello,
I have a problem when use 05DF:write_memory to write -1 in Vice City.

This is the code i used:

05DF: write_memory 0@ size 4 value 0xFFFFFFFF virtual_protect 0

but when i compiled it, '0xFFFFFFFF' became '04 FF', and it wrote only one byte in the memory.

So i changed the code:

2@ = -1
05DF: write_memory 0@ size 4 value 2@ virtual_protect 0

it works. but is there any other solutions?

Board footer

Powered by FluxBB