Why does it crash when used? Or am I just failing again? (me is nooby) /:
(Yes, I am waiting for CShell to be loaded. In fact, I only initialise this when in game - GameStatus = 1)
A degree of copy-pasting defense has been applied to this code. You should be able to work it out.
[php]
class CGameStatistics;
class CGameInfo;
class CGameWeaponInfo;
class CGameStats;
class CGameSomething;
CGameStatistics * GameStatistics = *(CGameStatistics**)GAMEADDRESS_LocalPlayerPointer ; // Local player pointer taken from sticky @ CA source code section ; thanks CodeDemon
class CGameStatistics // thanks to Gellin - only class names modified.
{
public:
CGameInfo* goToInfoClass; //0000
};
but the name is different O.o
Forgive me if im wrong, But im bad with classes lol
CGameStats* goToStats;
CGameStats is the name of the class
goToStats is the name of this instance of the class.
It's right. Something about it isn't though. I'm not sure if its the assignment of the variable crashing , or using it causing the crash. Either way, it's crashing ! D: !
( 'GameStatistics->goToInfoClass->goToSomething->bIsAlive' is what i use.)
WOW way confusing
Originally Posted by Casey95
WOW way confusing
Doesn't solve problem ):
Have you tried pointing to one class at a time and seeing if tis crashing?
I found i crashed if i pointed to a certin class.
Originally Posted by ac1d_buRn
Have you tried pointing to one class at a time and seeing if tis crashing?
I found i crashed if i pointed to a certin class.
Combat Arms is currently patching, but thanks, I'll try that
[php]Main *pInfo = (Main*) dwInfoclass;//the addy
if(pInfo->goToInfoClass->goToWepInfo->iGrenadesLeft||pInfo->goToInfoClass->goToWepInfo->iPrimary||pInfo->goToInfoClass->goToWepInfo->iSecondary||pInfo->goToInfoClass->goToWepInfo->iBackPackA)
/*Draw a box with ammo informations*/;
//blablabla all the other things..[/php]
thats how i use it
Originally Posted by kotentopf
[php]Main *pInfo = (Main*) dwInfoclass;//the addy
if(pInfo->goToInfoClass->goToWepInfo->iGrenadesLeft||pInfo->goToInfoClass->goToWepInfo->iPrimary||pInfo->goToInfoClass->goToWepInfo->iSecondary||pInfo->goToInfoClass->goToWepInfo->iBackPackA)
/*Draw a box with ammo informations*/;
//blablabla all the other things..[/php]
thats how i use it
Is my player structure outdated? O: !
Originally Posted by freedompeace
Is my enemy structure outdated? O: !
Gellin released an update on it, But all that still works.
Originally Posted by ac1d_buRn
Gellin released an update on it, But all that still works.