|
Архив - только для чтения |
Модератор форума: andycrowz |
Форум Корзина форума Корзина Ошибка was not declared in this scope |
Ошибка was not declared in this scope |
Приветствую вас, знатоки, может, кто-нибудь сталкивался с данной проблемой
"was not declared in this scope" , как решить данную проблему? Код /home/gragonvlad/Download/relax/src/server/game/Entities/Unit/StatSystem.cpp:55:33: error: no ‘void Unit::UpdateAllResistances()’ member function declared in class ‘Unit’ void Unit::UpdateAllResistances() ^ /home/gragonvlad/Download/relax/src/server/game/Entities/Unit/StatSystem.cpp: In member function ‘virtual void Unit::UpdateDamagePhysical(WeaponAttackType)’: /home/gragonvlad/Download/relax/src/server/game/Entities/Unit/StatSystem.cpp:66:69: error: ‘CalculateMinMaxDamage’ was not declared in this scope CalculateMinMaxDamage(attType, false, true, minDamage, maxDamage); ^ /home/gragonvlad/Download/relax/src/server/game/Entities/Unit/StatSystem.cpp: In member function ‘void Player::UpdateSpellDamageAndHealingBonus()’: /home/gragonvlad/Download/relax/src/server/game/Entities/Unit/StatSystem.cpp:186:105: error: ‘SpellBaseHealingBonusDone’ was not declared in this scope SetStatInt32Value(PLAYER_FIELD_MOD_HEALING_DONE_POS, SpellBaseHealingBonusDone(SPELL_SCHOOL_MASK_ALL)); ^ /home/gragonvlad/Download/relax/src/server/game/Entities/Unit/StatSystem.cpp:189:111: error: ‘SpellBaseDamageBonusDone’ was not declared in this scope SetStatInt32Value(PLAYER_FIELD_MOD_DAMAGE_DONE_POS+i, SpellBaseDamageBonusDone(SpellSchoolMask(1 << i))); ^ /home/gragonvlad/Download/relax/src/server/game/Entities/Unit/StatSystem.cpp: In member function ‘virtual bool Player::UpdateAllStats()’: /home/gragonvlad/Download/relax/src/server/game/Entities/Unit/StatSystem.cpp:218:26: error: ‘UpdateAllResistances’ was not declared in this scope UpdateAllResistances(); ^ /home/gragonvlad/Download/relax/src/server/game/Entities/Unit/StatSystem.cpp: At global scope: /home/gragonvlad/Download/relax/src/server/game/Entities/Unit/StatSystem.cpp:223:65: error: no ‘void Player::ApplySpellPenetrationBonus(int32, bool)’ member function declared in class ‘Player’ void Player::ApplySpellPenetrationBonus(int32 amount, bool apply) ^ /home/gragonvlad/Download/relax/src/server/game/Entities/Unit/StatSystem.cpp: In member function ‘virtual void Player::UpdateArmor()’: /home/gragonvlad/Download/relax/src/server/game/Entities/Unit/StatSystem.cpp:258:91: error: ‘CalculatePct’ was not declared in this scope value += CalculatePct(GetStat(Stats((*i)->GetMiscValueB())), (*i)->GetAmount()); ^ /home/gragonvlad/Download/relax/src/server/game/Entities/Unit/StatSystem.cpp: In member function ‘virtual void Player::UpdateAttackPowerAndDamage(bool)’: /home/gragonvlad/Download/relax/src/server/game/Entities/Unit/StatSystem.cpp:398:37: error: ‘class AuraEffect’ has no member named ‘GetSpellInfo’ if (aurEff->GetSpellInfo()->SpellIconID == 1563) ^ /home/gragonvlad/Download/relax/src/server/game/Entities/Unit/StatSystem.cpp:403:88: error: ‘CalculatePct’ was not declared in this scope mLevelMult = CalculatePct(1.0f, aurEff->GetAmount()); ^ /home/gragonvlad/Download/relax/src/server/game/Entities/Unit/StatSystem.cpp:465:100: error: ‘CalculatePct’ was not declared in this scope attPowerMod += CalculatePct(GetStat(Stats((*i)->GetMiscValue())), (*i)->GetAmount()); ^ /home/gragonvlad/Download/relax/src/server/game/Entities/Unit/StatSystem.cpp:472:96: error: ‘CalculatePct’ was not declared in this scope attPowerMod += CalculatePct(GetStat(Stats((*i)->GetMiscValue())), (*i)->GetAmount()); ^ /home/gragonvlad/Download/relax/src/server/game/Entities/Unit/StatSystem.cpp:492:25: error: ‘class Pet’ has no member named ‘IsHunterPet’ if (pet && pet->IsHunterPet()) // At ranged attack change for hunter pet ^ /home/gragonvlad/Download/relax/src/server/game/Entities/Unit/StatSystem.cpp:506:35: error: ‘class Guardian’ has no member named ‘IsSpiritWolf’ if (guardian && guardian->IsSpiritWolf()) // At melee attack power change for Shaman feral spirit ^ /home/gragonvlad/Download/relax/src/server/game/Entities/Unit/StatSystem.cpp: In member function ‘void Player::UpdateBlockPercentage()’: /home/gragonvlad/Download/relax/src/server/game/Entities/Unit/StatSystem.cpp:597:35: error: ‘CONFIG_STATS_LIMITS_ENABLE’ was not declared in this scope if (sWorld->getBoolConfig(CONFIG_STATS_LIMITS_ENABLE)) ^ /home/gragonvlad/Download/relax/src/server/game/Entities/Unit/StatSystem.cpp:598:53: error: ‘CONFIG_STATS_LIMITS_BLOCK’ was not declared in this scope value = value > sWorld->getFloatConfig(CONFIG_STATS_LIMITS_BLOCK) ? sWorld->getFloatConfig(CONFIG_STATS_LIMITS_BLOCK) : value; ^ /home/gragonvlad/Download/relax/src/server/game/Entities/Unit/StatSystem.cpp: In member function ‘void Player::UpdateCritPercentage(WeaponAttackType)’: /home/gragonvlad/Download/relax/src/server/game/Entities/Unit/StatSystem.cpp:635:31: error: ‘CONFIG_STATS_LIMITS_ENABLE’ was not declared in this scope if (sWorld->getBoolConfig(CONFIG_STATS_LIMITS_ENABLE)) ^ /home/gragonvlad/Download/relax/src/server/game/Entities/Unit/StatSystem.cpp:636:49: error: ‘CONFIG_STATS_LIMITS_CRIT’ was not declared in this scope value = value > sWorld->getFloatConfig(CONFIG_STATS_LIMITS_CRIT) ? sWorld->getFloatConfig(CONFIG_STATS_LIMITS_CRIT) : value; ^ /home/gragonvlad/Download/relax/src/server/game/Entities/Unit/StatSystem.cpp: At global scope: /home/gragonvlad/Download/relax/src/server/game/Entities/Unit/StatSystem.cpp:670:46: error: no ‘float Player::GetMissPercentageFromDefence() const’ member function declared in class ‘Player’ float Player::GetMissPercentageFromDefence() const ^ /home/gragonvlad/Download/relax/src/server/game/Entities/Unit/StatSystem.cpp: In member function ‘void Player::UpdateParryPercentage()’: /home/gragonvlad/Download/relax/src/server/game/Entities/Unit/StatSystem.cpp:730:35: error: ‘CONFIG_STATS_LIMITS_ENABLE’ was not declared in this scope if (sWorld->getBoolConfig(CONFIG_STATS_LIMITS_ENABLE)) ^ /home/gragonvlad/Download/relax/src/server/game/Entities/Unit/StatSystem.cpp:731:53: error: ‘CONFIG_STATS_LIMITS_PARRY’ was not declared in this scope value = value > sWorld->getFloatConfig(CONFIG_STATS_LIMITS_PARRY) ? sWorld->getFloatConfig(CONFIG_STATS_LIMITS_PARRY) : value; ^ /home/gragonvlad/Download/relax/src/server/game/Entities/Unit/StatSystem.cpp: In member function ‘void Player::UpdateDodgePercentage()’: /home/gragonvlad/Download/relax/src/server/game/Entities/Unit/StatSystem.cpp:756:52: error: no matching function for call to ‘Player::GetDodgeFromAgility(float&, float&)’ GetDodgeFromAgility.. |
| |||
| |||