Solved HI! Been getting a few unsolveable erros from the Bunny Hop tutorial!

Hexui Undetected CSGO Cheats Sinkicheat PUBG Cheat

Rake

Cesspool Admin
Administrator
Jan 21, 2014
12,376
78,998
2,414
Try that. :)

C++:
#include <Windows.h>
#include <iostream>
#include "HackProcess.h"

CHackProcess fProcess;
using namespace std;

const DWORD Player_Base = 0x5998AC;
const DWORD dw_jump = 0x58A68C;
const DWORD Dw_JumpOffset = 0x34C;

#define FL_ONGROUND 257
#define SPACE_BAR 0x20
#define F6_Key 0x75

bool b_true = true;
bool b_false = false;
bool BunnyHopStatus = false;


struct MyPlayer_t
{
    DWORD ClocalPlayer;
    int m_fFlags;
   
    void ReadInformation()
    {
        ReadProcessMemory(fProcess.__HandleProcess, (PBYTE*)(fProcess.__dwordClient + Player_Base), &ClocalPlayer, sizeof(DWORD), 0);
        ReadProcessMemory(fProcess.__HandleProcess, (PBYTE*)(ClocalPlayer+ Dw_JumpOffset), &m_fFlags, sizeof(int), 0);
    }
}MyPlayer;

void BunnyHop()
{
    if (GetAsyncKeyState(SPACE_BAR))
    {
        BunnyHopStatus = !BunnyHopStatus;
        Sleep (250);

        if (!BunnyHopStatus) { return; }

        if(MyPlayer.m_fFlags == FL_ONGROUND)
        {
            WriteProcessMemory(fProcess.__HandleProcess, (PBYTE*)(fProcess.__dwordClient + dw_jump), &b_true, sizeof(bool), NULL);
        }

        else if(MyPlayer.m_fFlags != FL_ONGROUND)
        {
            WriteProcessMemory(fProcess.__HandleProcess, (PBYTE*)(fProcess.__dwordClient + dw_jump), &b_false, sizeof(bool), NULL);
        }
    }
}


int main()
{
    fProcess.RunProcess();
    cout << "Found The Game! Loading Bunny Hop.." << endl;

    while(!GetAsyncKeyState(F6_Key))
    {
        MyPlayer.ReadInformation();
        BunnyHop();
    }
}
Don't forget to put it on Release mode eh. ;)
 
Last edited:

Rake

Cesspool Admin
Administrator
Jan 21, 2014
12,376
78,998
2,414
C++:
if (!BunnyHopStatus)
return;
C++:
if (!BunnyHopStatus) [I]{[/I] [I]return 0 ; }[/I]
;)
 
Last edited by a moderator:

habit

Newbie
Full Member
Oct 30, 2012
28
308
0
what game are u trying to make this bhop for? make sure you use multi-byte with your source code.
 

Marcus

Jr.Coder
Full Member
Nobleman
Jan 28, 2013
98
473
0
So, the problem now is basicly the {} ?:p
I'm very new to c++ programming. Usually a Web guy.
 

NTvalk

Hacker
Meme Tier VIP
Jul 6, 2013
499
3,108
8
So, the problem now is basicly the {} ?:p
I'm very new to c++ programming. Usually a Web guy.
Yes, when it says "Unexpected end of file" it basicly means you are missing a closing bracket. i suggest going through all the brackets and make sure they are all closed/opened the right way.
 

Marcus

Jr.Coder
Full Member
Nobleman
Jan 28, 2013
98
473
0
Yes, when it says "Unexpected end of file" it basicly means you are missing a closing bracket. i suggest going through all the brackets and make sure they are all closed/opened the right way.
Oh, Okey. Thanks for the help mate!:) I'll check it out and se if I can solve it:)
 

habit

Newbie
Full Member
Oct 30, 2012
28
308
0
C++:
if (!BunnyHopStatus)
return;
C++:
if (!BunnyHopStatus) [I]{[/I] [I]return 0 ; }[/I]
;)
-This won't fix the error, it will cause another error, its a void function, it will only look like its fixed if theres { } related errors!
that if statement is perfectly fine the way it is. but to make the program more efficient, use else if instead of if
C++:
else if (!BunnyHopStatus)
return;

just looked at those pictures, most of those errors are caused by missing { }, just count them and make sure there's a even count of brackets :D
 

Rake

Cesspool Admin
Administrator
Jan 21, 2014
12,376
78,998
2,414
Just took a quick look at the pictures anyway, didn't see the rest. :D
 
Last edited by a moderator:

Rake

Cesspool Admin
Administrator
Jan 21, 2014
12,376
78,998
2,414
Why don't you upload the source you currently got to either pastebin or privatepaste. Maybe some brave soul will help you out that way. :)
 
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.

Similar threads

Community Mods