- Mesaj
- 17
- Çözümler
- 1
- Beğeni
- 0
- Puan
- 406
- Ticaret Puanı
- 0
bu konudaki sistemi eklemek istediğimde aldığım build hatasını bir türlü çözümleyemedim.
yardımlarınızı rica ederim.
Benim gibi hata alan olursa düzenleme şu şekildedir;
Packet.h 'den #include "stdafx.h" kaldır.
Char.h
Kod:
public:
void SetProtectTime(const std::string& flagname, int value);
int GetProtectTime(const std::string& flagname) const;
protected:
std::map<std::string, int> m_protection_Time;
};
Char.cpp " uygun yere ekle"
Kod:
void CHARACTER::SetProtectTime(const std::string& flagname, int value)
{
itertype(m_protection_Time) it = m_protection_Time.find(flagname);
if (it != m_protection_Time.end())
it->second = value;
else
m_protection_Time.insert(make_pair(flagname, value));
}
int CHARACTER::GetProtectTime(const std::string& flagname) const
{
itertype(m_protection_Time) it = m_protection_Time.find(flagname);
if (it != m_protection_Time.end())
return it->second;
return 0;
}
iyi forumlar
Son düzenleme: