Visual C++ 10' Trainer

Posts 16 of 6 · Page 1 of 1
Visual C++ 10' Trainer
I dont know what's wrong but, I can't seems to convert my float value precisely.

How Am I going to get rid of this E+**** >.<


I wanna make it something like this.


Anyone could help me?
Source code would be handy.
Here it is.

MainAddress.h

//================================================== =========== 1.0.0.200 ================================================== ======
//BASE ADDRESS
ULONG_PTR ADDR_BASE = 0x00F194D0;
#define Wallhack1 0x0056EB65
#define Wallhack2 0x0056EB58
#define NoCoolDown 0x0065E723
#define BASE_ADDRESS 0xB194D0

//X Coordinate
int xo1 = 0x4c4;
int xo2 = 0x8;
int xo3 = 0x30;

//Y Coordinate
#define Y_off1 0x4c4
#define Y_off2 0x8
#define Y_off3 0x38

//Z Coordinate
#define Z_off1 0x4c4
#define Z_off2 0x8
#define Z_off3 0x34
//================================================== ================================================== ============================
Hacks.h

#include "Functions.h"
#include "MainAddress.h"

void WallhackCheat(bool fEnable)
{
if(fEnable)
{
WriteMemory(Wallhack1,3, 0x90, 0x90,0x90);
WriteMemory(Wallhack2,2, 0x90, 0x90);
}
else
{
WriteMemory(Wallhack1,3, 0x89, 0x48,0x08);
WriteMemory(Wallhack2,2, 0x89, 0x08);
}
}

void NoCoolDownCheat(bool fEnable)
{
if(fEnable)
{
WriteMemory(NoCoolDown,2,0x90,0x90);
}
else
{
WriteMemory(NoCoolDown,2,0x7a,0x08);
}
}

unsigned int Xvalue = 0;

void XVALUE()
{
for(;
{
Xvalue = (int)readMultiPointer(ADDR_BASE, 3 , xo1, xo2, xo3);
Sleep(100);
}
}
Then this is in the form.h

#include "Form1.h"
#include "Hacks.h"

extern unsigned int Xvalue;
...//cut out some codes here
...
...

void Form1::timer1_Tick(System::Object ^sender, System::EventArgs ^e)
{
float xvalue = Xvalue;
Form1::label1->Text = xvalue.ToString();
}
anyone wanna help me figure this out? >.<

---------- Post added at 10:25 PM ---------- Previous post was at 09:13 PM ----------

Got it thread can now be closed.
Quote Originally Posted by xkhen0017 View Post
anyone wanna help me figure this out? >.<

---------- Post added at 10:25 PM ---------- Previous post was at 09:13 PM ----------

Got it thread can now be closed.
Solution? Some might find it useful.

But this is usually bad formatting related.
Im using DWORD var = (DWORD*)(*(DWORD*)etc........ to make read of the pointers.
Posts 16 of 6 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?