my game crash when i use this, if I change it manually with Cheat Engine it works fine, but if I do it from the .asi plugin the game crashes, can somebody help me?
Change memory protection of these two addresses with VirtualProtect() (for example to PAGE_EXECUTE_READWRITE), change the values and then restore the protection. Cheat Engine do it automatically