The base address is 0x0045cc20 and the following offset is 0xEC found by cheat engine.
My code without offset
I try set offset wth baseadress but i getting the strange results..
Any help ? :handsdown:
My code without offset
Code:
public void Write(int val)
{
byte[] bytes = new byte[4];
bytes[0] = (byte)val;
bytes[1] = (byte)(val >> 8);
bytes[2] = (byte)(val >> 16);
bytes[3] = (byte)(val >> 24);
int bytesWriten = 4;
IntPtr ptrBytesWritten;
WriteProcessMemory(m_hProcess, (IntPtr)0x0045cc20 , bytes, (uint)bytes.Length, out ptrBytesWritten);
bytesWriten = ptrBytesWritten.ToInt32();
}
Any help ? :handsdown: