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

Hexui Undetected CSGO Cheats PUBG Accounts

Rake

I'm not your friend
Administrator
Jan 21, 2014
13,032
79,068
2,469
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

I'm not your friend
Administrator
Jan 21, 2014
13,032
79,068
2,469
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

I'm not your friend
Administrator
Jan 21, 2014
13,032
79,068
2,469
Just took a quick look at the pictures anyway, didn't see the rest. :D
 
Last edited by a moderator:

Rake

I'm not your friend
Administrator
Jan 21, 2014
13,032
79,068
2,469
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. :)
 
Community Mods