i'm trying to do Vampire Mod as a room option , compiled it and it shows errors:
Code:
errors:
Gunz\ZCharacter.cpp(4436): error C2065: 'pStage' : undeclared identifier
Gunz\ZCharacter.cpp(4436): error C2227: left of '->bVampire' must point to class/struct/union
Gunz\ZCharacter.cpp(4436): error C2227: left of '->GetStageSetting' must point to class/struct/union
Gunz\ZCharacter.cpp(4436): error C2227: left of '->GetStageSetting' must point to class/struct/union
type is ''unknown-type''
Code:
Code:
if(pStage->GetStageSetting()->GetStageSetting()->bVampire == true && pAttacker == ZGetGame()->m_pMyCharacter) {
float fpNewHP = (((ZCharacter *)pAttacker)->GetHP() + UPDATE_HEALTH_HPV),
fpNewAP = (((ZCharacter *)pAttacker)->GetAP() + UPDATE_HEALTH_APV);
if (fpNewHP <= (((ZCharacter *)pAttacker))->GetMaxHP()) {
((ZCharacter *)pAttacker)->SetHP(fpNewHP);
}
if (fpNewAP <= (((ZCharacter *)pAttacker))->GetMaxAP()) {
((ZCharacter *)pAttacker)->SetAP(fpNewAP);
}
}
Gunz\ZCharacter.cpp(4436): error C2065: 'pStage' : undeclared identifier
Gunz\ZCharacter.cpp(4436): error C2227: left of '->bVampire' must point to class/struct/union
Gunz\ZCharacter.cpp(4436): error C2227: left of '->GetStageSetting' must point to class/struct/union
Gunz\ZCharacter.cpp(4436): error C2227: left of '->GetStageSetting' must point to class/struct/union
type is ''unknown-type''