Solved Cheat Engine, simple script doesn't work (AssaultCube)

Hexui Undetected CSGO Cheats Sinkicheat PUBG Cheat

myspring

Dank Tier Donator
Jul 9, 2018
39
448
0
Game Name
AssaultCube
Anticheat
No
How long you been coding/hacking?
1 year+
Coding Language
Assembly
I'm creating a simple script for AssultCube which simply compares current value of ammo to some another int value (10 in my case):
if the value is greater then 10 - do nothing, if less - assign it to 20. (max ammo).

Here's my script:
1587730714433.png


But when current ammo drops to 9, game simply crashes.
 

Kleon742

Feature Enthusiast
Moderator
Dank Tier VIP
Dank Tier Donator
Sep 2, 2018
338
16,058
41
You jump to returncode right after setting the new Ammo value but you don't execute the
Code:
push edi
mov edi, [esp+14]
 
Attention! Before you post:

Read the How to Ask Questions Guide
99% of questions are answered in the Beginner's Guide, do it before asking a question.

No Hack Requests. Post in the correct section.  Search the forum first. Read the rules.

How to make a good post:

  • Fill out the form correctly
  • Tell us the game name & coding language
  • Post everything we need to know to help you
  • Ask specific questions, be descriptive
  • Post errors, line numbers & screenshots
  • Post code snippets using code tags
  • If it's a large project, zip it up and attach it

If you do not comply, your post may be deleted.  We want to help, please make a good post and we will do our best to help you.

Community Mods