Quantcast
Channel: RaGEZONE - MMO Development Forums
Viewing all articles
Browse latest Browse all 14533

[Help] Error while compiling something..

$
0
0
i'm trying to do Vampire Mod as a room option , compiled it and it shows errors:
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);
            }
                        }

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''

Viewing all articles
Browse latest Browse all 14533

Trending Articles