Ive got these classes->
Code:
class pMain;
class Info;
class pMain
{
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
};
And when i try to do this->
Code:
switch(hack13)
{
case 0:
if(hack13 = 0)
{
}
break;
case 1:
if(hack13 ==1)
{
*(long*)0x378228C4 = 4;
if(pMain->goToInfoClass->iCurrentHealth == 0)
*(long*)0x378228C4 = 2;
}
break;
}
i get->
Code:
error C2059: syntax error : '->'
and when i put my mouse over the red line, it says->
Code:
Expression must have a bool type (or be convertible to bool)
What am i doing wrong 0.o???