I already see some things in your code.
starting at Base.cpp
either you explain to me why you have :
#include <iostream>
#include <iomanip>
or you just delete them right away
Second:
you have this code:
Code:
void RebuildMenu(void)
{
Bl4ck->AddFolder("Hacks",folder, &folder1,2);
;if (folder1)
{
Bl4ck->AddItem (" NFD",onoff, &CH_NFD,1);
Bl4ck->AddItem (" SuperJump",onoff, &CH_Superjump,1);
}
}
it should be like this:
Code:
void RebuildMenu(void)
{
Bl4ck->AddFolder("Hacks",folder, &folder1,2);
if (folder1)
{
Bl4ck->AddItem (" NFD",onoff, &CH_NFD,2);
Bl4ck->AddItem (" SuperJump",onoff, &CH_Superjump,2);
}
See the difference?
let me explain it to you
void RebuildMenu(void)
{
Bl4ck->AddFolder("Hacks",folder, &folder1,2);
;
// why do you have this ??? its used to end a line not to open one if (folder1)
{
Bl4ck->AddItem (" NFD",onoff, &CH_NFD,1
//1 ? the function asks you here how many choice's you got in this case its 2 OFF and ON);
Bl4ck->AddItem (" SuperJump",onoff, &CH_Superjump,1
// same story here);
}
and in Hacks.h
you have some misstakes as well.
Code:
if(CH_NFD==1)
{
*(float*)(ADR_PlayerPointer+ADR_OFFSET_NOFALLDAMAGE) = -20000; // you are using ADR_PlayerPointer here trust me if you do it like this it wont even work. you want to use the DWORD Player
}
// do it like this
if(CH_NFD==1)
{
*(float*)(Player+ADR_OFFSET_NOFALLDAMAGE) = -20000;
}
on the superjump code you get the wrong idea.
Code:
if(CH_Superjump==1)
{
*(float*)(ADR_PlayerPointer+OFS_Z) = -20000;
}
wat you want to do right know is to put the player to minus 20000 when the hack is turned on and the he is not going to fall back to the real world of the game anymore
it would be better if you would ask for a key to be pressed to bring him there.
like this:
Code:
if(CH_Superjump==1)
{
if(GetAsyncKeyState(VK_CONTROL)&1) // Press the left Control key to superjump
{
*(float*)(Player+OFS_Z) = 5000;// instead of -20000 you want to put 5000 or something like that in here its a superjump remember not a downjump
}}
So I hope this helped you.
It could be that i missed something here. but hea I already did much of your work didn't I?
If your still having problems send me a pm so I can help you trough TeamViewer or something like that.
also don't try to rush this learn.
Regards,
geakzornl