how to set limit for increse hoe key?

D

DRDNK1000

Cheater
Joined
May 27, 2019
Messages
33
so i found item slot id.

i use hot key to increase/decrase whit 1
now the thing is ,when u put number large then 50
your game will crush
can i limit the increase to 50?/deacrease to 0?
 
GreenHouse

GreenHouse

Expert Cheater
Table Maker
Joined
Oct 12, 2018
Messages
454
D

DRDNK1000

Cheater
Joined
May 27, 2019
Messages
33
Chucky

Chucky

Expert Cheater
Joined
Mar 8, 2018
Messages
53
Code:
push eax
push ebx
mov eax,[slot_Id_Address]
xor ebx,ebx
cmp eax,ebx
cmovl eax,ebx
mov ebx,32
cmp eax,ebx
cmovg eax,ebx
mov [slot_Id_Address],eax
pop ebx
pop eax
 
Top