Question[HELP] How to use classes?

Posts 1–8 of 8 · Page 1 of 1
[HELP] How to use classes?
Ok...
My question is how to use classes like this one in c++:

[php]if(pMain->goToInfoClass->goToWepInfo->iGrenadesLeft < 2){
if(pMain->goToInfoClass->goToWepInfo->iGrenadesLeft = 30);
[/php]

Plz help me
You cannot, those a reveced classes used by people who know what they're doing, you (we) neither have the pointer to that class in memory, nor the reverced struct in our code

Sorry buddy, there's no way in fixing that code
I have the class:

[php]class Main;
class Info;
class Stats;
class WepInfo;
class Something;

class Main
{
public:
Info* goToInfoClass; //0000
};

class Info
{
public:
char unknown0[8];
__int32 Unknown1; //0008
__int32 iCurrentHealth; //000C
char unknown2[4];
__int32 iMaxHealth; //0014
char unknown3[4];
WepInfo* goToWepInfo;//001C
Something* goToSomething; //0020
char unknown4[348];
float fStamina; //0180
char unknown5[8];
__int32 iWeaponSlotInUse; //018C
float fCameraSomething; //0190
float fCameraSomething2; //0194
float fCameraSomething3; //0198
char unknown6[32];
Stats* goToStats; //01BC
};

class WepInfo
{
public:
__int32 iBackPackABulletsLeft; //0000
__int32 i2ndaryBulletsLeft; //0004
__int32 Unknown0; //0008
__int32 iGrenadesLeft; //000C
__int32 iBackPackBBulletsLeft; //0010
};

class Stats
{
public:
char unknown0[16];
char szLocalNameChangesInKill[16]; //0010
char unknown1[12];
__int32 iKills; //002C
__int32 iDeaths; //0030
char unknown2[44];
__int32 iHeadShots; //0060
};

class Something
{
public:
BYTE bIsAlive; //0000
};[/php]

But why i cant use it?

[php]int cHealth = pMain->gotoInfoClass->iCurrentHealth;[/php]
The error is the pMain?!
Pmain probaly stands for pointer to main, I guess this class would be initialized like this:

Main *Pmain = *(dword*) 0xaddress of the class in memory

But you still lack the address = no pointer to class in memory = no hack, sorry
I cant get it work there come all time an error -.-

It cant convert Main to pMain??!

Main * Pmain = *(DWORD*)0x377CF260;

PS: the class is for NA only xDD
Quote Originally Posted by ChanceOfHax View Post
I cant get it work there come all time an error -.-

It cant convert Main to pMain??!

Main * Pmain = *(DWORD*)0x377CF260;

PS: the class is for NA only xDD
if '0x377CF260' the address you need, that should work
The error is that he cant convert Main to dword pmain how to define now?!
Quote Originally Posted by ChanceOfHax View Post
The error is that he cant convert Main to dword pmain how to define now?!
Post the exact error code, and your sourcecode
if you want me to help you
Posts 1–8 of 8 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us