Little Problem!

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

nico0

Newbie
Full Member
Jun 18, 2012
8
232
0
So well heres my Code:


How you can see my problem starts at "break"
I cant find any solutions,i need your help guys! :)

Peace Nico.

Sry for my bad english :/
 

Crazywink

Hacker
Meme Tier VIP
Dank Tier Donator
Jul 18, 2012
626
4,613
17
Can you post your whole source please? :) Hard to tell with just this chunk of code.


EDIT: It looks to me like everything's fine in this piece of code, so it must be something above what this picture shows. If you can post your whole source I'll try and help you the best I can. :)
 

voidisalive

Jr.Coder
Full Member
Nobleman
May 27, 2012
67
458
3
Please provide code segments pictures ain't gonna help us help you.

Greets,

voidisalive
 

c5

Kim Kong Trasher
Dank Tier VIP
Dank Tier Donator
Jul 19, 2012
1,187
12,638
76
PS: If you don't want to paste the whole code here then I'm sure Fleep wouldn't mind if you pasted it at www.pastebin.com and then forwarded them to the link in here :)
 

Crazywink

Hacker
Meme Tier VIP
Dank Tier Donator
Jul 18, 2012
626
4,613
17
I think I found your problem..
You had:

bool Aim_Bot(HWND appWnd, std::string GameWindow);
It should be...
bool Aim_Bot(HWND appWnd, std::string GameWindow) <------ No semicolon

Should fix the problem. :)

Also, I noticed this:
(unrelated to the error)

RGBQZAD * pPixels;
should be:
RGBQUAD * pPixels;

Hope this fixes it! :D
 

nico0

Newbie
Full Member
Jun 18, 2012
8
232
0
Ty!
But it only fixed my problem with break;.

It still says something is wrong with hdcShot,rcWindow,SelectObject,DelectObject and stuff.
Any idea :(?
 

Crazywink

Hacker
Meme Tier VIP
Dank Tier Donator
Jul 18, 2012
626
4,613
17
Okay, so you left out the whole TakeScreenshot function.

After
int (main)
{
All your code
}

You need to add this:

C++:
bool TakeScreenshot(std::string WindowToFind, BITMAP &bm, HBITMAP &hbmap, BITMAPINFO &bmi, HDC &hdcShot, HBITMAP &hbitmapOld, HWND &hwnd)
{
	RECT rc;
	GetWindowRect(hwnd, &rc);

	hdcShot = CreateCompatibleDC(0);
	hbmap = CreateCompatibleBitmap(GetDC(0), rc.right - rc.left, rc.bottom - rc.top);
	SelectObject(hdcShot, hbmap);

	//BitBlt(hdcShot, 0, 0, rc.right - rc.left, rc.bottom - rc.top, hdcShot, rc.left, rc.top, SRCCOPY); ORIGINAL
	BitBlt(hdcShot, 0, 0, rc.right - rc.left/*Window WIDTH*/, rc.bottom - rc.top/*Window HEIGHT*/
		, GetDC(0), rc.left, rc.top, SRCCOPY);

	if(!GetObject(hbmap, sizeof(BITMAP), (LPSTR)&bm))
		return false;


	int bitsPerPixel = bm.bmBitsPixel;

	if(bitsPerPixel != 32 || bm.bmPlanes != 1)
		return false;

	SetupBitmapInfo(bmi, bm.bmWidth, bm.bmHeight, bitsPerPixel);
	return true;
		}
That should fix them from undefined. :)
 

nico0

Newbie
Full Member
Jun 18, 2012
8
232
0
Fixed it by myself :)
Forgot some ";"

And also in some parts before i typed something wrong!
But thanks for your help guys :)

Peace
 
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