I told you the instruction is probably shared during certain times. Yea maybe the old code worked but this new address might not be the same. You have 4-5 different locations to inject, choose another and see if that works.
Originally Posted by lolbie
Another thing i noticed, you write to addresses regardless if you're in the menu or not. This can also cause a crash.
What you need to do is read from an address say health for example.
If you're dead or in the menu, the value is 0. So if that value reads 0 at anytime, just disable the hacks.
Just make a simple function like
If it returns true, disable hacks else everything is ok.
Public Function IsOK() As Boolean
Return ReadInt(Health_Addy) = 0