I'm trying to write a script to lock an address whenever another address (in the same game that I'm trying to hack) is a certain value.
EG.
I want to lock address 0x11111111 to a value "5" whenever address 0x22222222 has a value "10".
I know a bit about C but I'm not sure why the following code doesn't work.
Much appreciation for any help you guys can provide!
Code:
VOID Lock( MHS_ADDRESS aAddress, INT iItemSize ) {
DWORD ValueToWrite;
ValueToWrite = 5;
extern DWORD WriteToHere = { "", aAddress };
if ( 0x22222222 == 10 ) {
WriteToHere = ValueToWrite;
}
}