• Amused
  • Angry
  • Annoyed
  • Awesome
  • Bemused
  • Cocky
  • Cool
  • Crazy
  • Crying
  • Down
  • Drunk
  • Embarrased
  • Enraged
  • Friendly
  • Geeky
  • Godly
  • Happy
  • Hateful
  • Hungry
  • Innocent
  • Meh
  • Piratey
  • Poorly
  • Sad
  • Secret
  • Shy
  • Sneaky
  • Tired
  • Wtf
  • At Work
  • CodenzHub
  • Coding
  • Deejaying
  • Donating
  • Drinking
  • Eating
  • Editing
  • Hacking
  • Hate Mailing
  • Jamin'
  • Lagging
  • Live Streaming
  • Lurking
  • No Status
  • Pawning
  • PC Gaming
  • PS Gaming
  • Raging
  • Reversing
  • Sleeping
  • Steam Gaming
  • Trolling
  • TwitchStreamer
  • Vodka!
  • Watching TV/Movie
  • Xbox Gaming
  • Youtuber
  • Zombies
  • Results 1 to 10 of 10

    Thread: Little Problem!

    1. #1
      Newbie
      Learning to hack games!
       
      Feeling Normal
       
      nico0's Avatar
      Join Date
      Jun 2012
      Posts
      8
      Thanks (-->)
      0
      Thanks (<--)
      0

      Little Problem!

      Silent VPN
      So well heres my Code:
      Little Problem!

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

      Peace Nico.

      [size=8pt]Sry for my bad english :/[/size]
      Donate  

    2. #2
      Hacker
      Retired
       
      Pawning
       
      Crazywink's Avatar
      Join Date
      Jul 2012
      Location
      US
      Posts
      647
      Thanks (-->)
      111
      Thanks (<--)
      228
      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.

    3. #3
      Jr.Coder
      Learning to hack games!
       
      Feeling Normal
       
      voidisalive's Avatar
      Join Date
      May 2012
      Posts
      68
      Thanks (-->)
      1
      Thanks (<--)
      14
      Please provide code segments pictures ain't gonna help us help you.

      Greets,

      voidisalive

    4. #4
      Kim Kong Trasher
      I don't have status.
       
      Raging
       
      c5's Avatar
      Join Date
      Jul 2012
      Location
      Mankei Iland
      Posts
      1,221
      Thanks (-->)
      97
      Thanks (<--)
      492
      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
      Little Problem!

    5. #5
      Newbie
      Learning to hack games!
       
      Feeling Normal
       
      nico0's Avatar
      Join Date
      Jun 2012
      Posts
      8
      Thanks (-->)
      0
      Thanks (<--)
      0
      Well heres the full Source:
      pastebin.com/07HUqma2

    6. #6
      Hacker
      Retired
       
      Pawning
       
      Crazywink's Avatar
      Join Date
      Jul 2012
      Location
      US
      Posts
      647
      Thanks (-->)
      111
      Thanks (<--)
      228
      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) &lt;------ No semicolon

      Should fix the problem.

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

      RGBQZAD * pPixels;
      should be:
      RGBQUAD * pPixels;

      Hope this fixes it!

    7. #7
      Newbie
      Learning to hack games!
       
      Feeling Normal
       
      nico0's Avatar
      Join Date
      Jun 2012
      Posts
      8
      Thanks (-->)
      0
      Thanks (<--)
      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 ?

    8. #8
      Hacker
      Retired
       
      Pawning
       
      Crazywink's Avatar
      Join Date
      Jul 2012
      Location
      US
      Posts
      647
      Thanks (-->)
      111
      Thanks (<--)
      228
      Okay, so you left out the whole TakeScreenshot function.

      After
      int (main)
      {
      All your code
      }

      You need to add this:

      Code:
      bool TakeScreenshot(std::string WindowToFind, BITMAP &amp;bm, HBITMAP &amp;hbmap, BITMAPINFO &amp;bmi, HDC &amp;hdcShot, HBITMAP &amp;hbitmapOld, HWND &amp;hwnd)
      {
      	RECT rc;
      	GetWindowRect(hwnd, &amp;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)&amp;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.

    9. #9
      Newbie
      Learning to hack games!
       
      Feeling Normal
       
      nico0's Avatar
      Join Date
      Jun 2012
      Posts
      8
      Thanks (-->)
      0
      Thanks (<--)
      0
      Fixed it by myself
      Forgot some ";"

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

      Peace

    10. #10
      Coder
      Learning to hack games!
       
      Feeling Normal
       
      konsowa's Avatar
      Join Date
      May 2012
      Posts
      184
      Thanks (-->)
      1
      Thanks (<--)
      2
      Silent VPN
      Locking this since its pretty much solved

    Similar Game Hacker Threads

    1. [Help] C# Problem
      By xa84759x in forum Hacking Help
      Replies: 11
      Last Post: 02-07-2015, 02:00 PM
    2. [Help] CE Problem
      By ace0000 in forum GH Tutorials Help
      Replies: 4
      Last Post: 12-25-2013, 10:39 AM
    3. OllyDBG problem
      By nb81 in forum Hacking Help
      Replies: 5
      Last Post: 11-24-2013, 07:20 AM
    4. Little Problem with value
      By etix in forum Hacking Help
      Replies: 4
      Last Post: 04-07-2013, 06:59 PM