- Mesaj
- 53
- Çözümler
- 5
- Beğeni
- 10
- Puan
- 689
- Ticaret Puanı
- 0
char.cpp: In member function 'int CHARACTER::GetBiologState(const std::string&) const':
char.cpp:6293: error: 'pPC' was not declared in this scope
vegas biyolog sistemini ekliyordum build ederken bu hatayı aldım
char.cpp:6293: error: 'pPC' was not declared in this scope
vegas biyolog sistemini ekliyordum build ederken bu hatayı aldım
C++:
//CHAR.CPP
//1.) Search:
bool CHARACTER::CanSummon(int iLeaderShip)
{
return (iLeaderShip >= 20 || iLeaderShip >= 12 && m_dwLastDeadTime + 180 > get_dword_time());
}
//2.) Add bellow:
#ifdef ENABLE_BIOLOG_SYSTEM
int CHARACTER::GetBiologState(const std::string& state) const
{
quest::CQuestManager& q = quest::CQuestManager::instance();
return pPC->GetFlag(state);
}
void CHARACTER::SetBiologState(const std::string& state, int szValue)
{
quest::CQuestManager& q = quest::CQuestManager::instance();
quest::PC* pPC = q.GetPC(GetPlayerID());
pPC->SetFlag(state, szValue);
}
#endif
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
//CHAR.H
//1.) Search:
void ClearQuestItemPtr();
//2.) Add bellow:
#ifdef ENABLE_BIOLOG_SYSTEM
int GetBiologState(const std::string& state) const;
void SetBiologState(const std::string& state, int szValue);
#endif
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""