Solved Chaging wrong address

Hexui Undetected CSGO Cheats Sinkicheat PUBG Cheat
Status
Not open for further replies.

godiku

Newbie
Full Member
Nov 20, 2016
5
32
0
C++:
for (i = 0; i < 4; i++) {
			if ((*(BYTE*)(alwaysPangya + i) = al_pangya[i])) {
				printf_s("ssss\n");
			}
		}
The code should modificate the following addresses: 00443530,00443531,00443532,00443533

But modificate this addresses 00443530, 00443534, 00443538,0044353C

vars:
C++:
int i;
	BYTE al_pangya[4] = {0x00,0x89,0x88,0xE4};
	DWORD* alwaysPangya = (DWORD *)PatternScan((char *)hModule, moduleInfo.SizeOfImage, "\x00\x89\x88\xD4\x00\x00\x00\x8B\x15", "xxxxxxxxx");
 

Broihon

edgy 12 y/o
Escobar Tier VIP
Fleep Tier Donator
Dec 22, 2013
1,745
40,528
316
C++:
for (i = 0; i < 4; i++) {
			if ((*(BYTE*)(alwaysPangya + i) = al_pangya[i])) {
				printf_s("ssss\n");
			}
		}
The code should modificate the following addresses: 00443530,00443531,00443532,00443533

But modificate this addresses 00443530, 00443534, 00443538,0044353C

vars:
C++:
int i;
	BYTE al_pangya[4] = {0x00,0x89,0x88,0xE4};
	DWORD* alwaysPangya = (DWORD *)PatternScan((char *)hModule, moduleInfo.SizeOfImage, "\x00\x89\x88\xD4\x00\x00\x00\x8B\x15", "xxxxxxxxx");
alwaysPangye should be a BYTE* and no DWORD*. In the for-loop you're increasing it by 4 bytes for each run since a DWORD is 4 bytes big. That's why you get 30, 34, 38, 3C.
 
Status
Not open for further replies.
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