Posted: Sun Jul 22, 2012 9:05 pm Post subject: Compare specific value
Hello guys,
Lately I stumbled upon something when I was trying to get Infinite Ammo for a game. I know how it goes in general but I am really stuck on this and I need some assistance.
Let me give you this for an example:
Player : 0000FF02
Enemy : 0001FF02
Team : 0002FF02
So everytime I shoot it'll increase the value like this:
0100FF02
0200FF02
0300FF02
0400FF02
Same goes for Enemy and Team.
Now to make sure both Player and Team get unlimited ammo I have to make a comparisation. Now the big question is:
Is there a certain way to only compare to the last 5 digits:
Player : 0000FF02
Enemy : 0001FF02
Team : 0002FF02
Kind Regards,
Magnificient _________________
To me programming is more than an important practical art. It is also a gigantic undertaking in the foundations of knowledge.
If you have a pointer for those addresses, try to add +3 to the pointers and change the types to a text(or string) of size 5.
Ex.:
00ABCDE0 pointsTo 0000FF02
*add +3 to the pointer = 00ABCDE0+3 = 00ABCDE3
00ABCDE3 pointsTo 0FF02XXX
(those X are random values, so since you don't have a 5 byte type, change it to a string(or text) of size 5 [each character in a string has 1 byte of size]. This way you get 5 bytes)
[/b]
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum