| Shahzktk How do I cheat?
 
 ![]() Reputation: 0 
 Joined: 03 May 2024
 Posts: 1
 
 
 | 
			
				|  Posted: Fri May 03, 2024 12:41 pm    Post subject: What is wrong with this code? |   |  
				| 
 |  
				| Hello, I am a Newbie to this. All i did in this code was compare a value and add instead of sub. It works but crashes my game after few seconds. 
 
 [ENABLE]
 
 aobscanmodule(INJECT,BellwrightGame-Win64-Shipping.exe,41 2B C4 41 89 47 18 75) // should be unique
 alloc(newmem,$1000,INJECT)
 
 label(code)
 label(return)
 
 newmem:
 cmp [rcx+410], #444
 jne code
 add eax,r12d
 mov [r15+18],eax
 jmp return
 
 code:
 sub eax,r12d
 mov [r15+18],eax
 jmp return
 
 INJECT:
 jmp newmem
 nop 2
 return:
 registersymbol(INJECT)
 
 [DISABLE]
 
 INJECT:
 db 41 2B C4 41 89 47 18
 
 unregistersymbol(INJECT)
 dealloc(newmem)
 _________________
 
 Shahz |  |