PDA

View Full Version : [HELP WANTED] C++ Pointers ex.: SuperJump



zosky
11-01-2007, 09:41 AM
Can someone help me to make the SuperJump hack in C++. I have made it for nomal adress with no pointers but i dont understant how to make it work for adress with pointers. I use DXT-Cobra source and i know that there is somethin for pointers in there but i dont know how to use it.

Dxt-Cobra
11-01-2007, 10:42 AM
ok lets run through this again.

heres your pointer function for float.



void WPF(long a, short o, float v)////// WPF = Write Pointer Float
{
long m;
long s;
memory();
ReadProcessMemory(GP, (LPVOID*)(DWORD) a, &m, sizeof(m), NULL);
s = m + o;
WriteProcessMemory(GP, (LPVOID*)(DWORD) s, &v, sizeof(v), NULL);
}



put that function with your others.

then in your button do



WPF (0x1279280,0x178, 1000);



Heres an example of my button code



void CDxtVipTrainerDlg::OnSJumpOn() ///// this here is my button
{
GPF (0x1279280,0x178, 2000); ///// this is our hack
}


everything always goes inbetween the
{
///code here
}


hope this helps you out man.

zosky
11-01-2007, 01:31 PM
thanks a lot Cobra for your fast anwser, it works great ! I have to say that you realy helped me with C++. Without you i wouldnt be able to make my trainer. Thanks for all your tutorials, they are realy helpfull and clear.

i am 1337
11-02-2007, 06:16 PM
i got a problem with pointers that have letters in them for some reason? it tells me that WritePointerFloat does not take 2 paramaters? do u know why is that?
for example the weapon one.
WritePointerFloat (0x1279280,0x4C, 34);

sailerboy
11-04-2007, 12:49 AM
is there a function that allows you to read a value?

Str8Soulja
11-04-2007, 12:57 AM
its all in Cobra's Source

LegendaryHacker
11-04-2007, 04:09 AM
i got a problem with pointers that have letters in them for some reason? it tells me that WritePointerFloat does not take 2 paramaters? do u know why is that?
for example the weapon one.
WritePointerFloat (0x1279280,0x4C, 34);

Seem you are using another function (not the same as cobra).
Take the cobra's function and use it instead your.

between, change the function name, this string might be detected.

Doomdive
11-08-2007, 06:27 AM
gives me an error:

C:\Programme\Microsoft Visual Studio\MyProjects\Doomdive\DoomdiveDlg.cpp(27) : error C2065: 'GP' : undeclared identifier

Dxt-Cobra
11-08-2007, 09:19 AM
Gp is hProcess for me lawl,i didn't realize i posted that lol.

you can change things in C++ just like Vb6,your just changing the strings.


So everywere there is a Hprocess,you can make it GP or FS,whatever you want.But change all or you will get that error.

Doomdive
11-08-2007, 09:59 AM
should i edit it in hProcess or what???

andy105
12-18-2007, 07:21 PM
wait is it WPF or GPF And i tryed them both it dont work

andy105
12-18-2007, 07:29 PM
gives me an error:

C:ProgrammeMicrosoft Visual StudioMyProjectsDoomdiveDoomdiveDlg.cpp(27) : error C2065: 'GP' : undeclared identifier

i get the same thing any help