yardım lütfen. oturum açtığımda sunucu ölüyor. kodlar bu çizgiyi gösteriyor :
help please. my server is crash when i login. the gdb show these lines :
Hilfe bitte. Der Server stirbt, wenn ich mich anmelde. Die Codes zeigen auf diese Zeile
help please. my server is crash when i login. the gdb show these lines :
Hilfe bitte. Der Server stirbt, wenn ich mich anmelde. Die Codes zeigen auf diese Zeile
Ekli dosyalar
If someone use marty source, need to change some code in char.cpp
this function change to:
and this function:
change to:
C++:
void CHARACTER::SetQuestFlag(const std::string& flag, int value)
this function change to:
C++:
void CHARACTER::SetQuestFlag(const std::string& flag, int value)
{
quest::CQuestManager& q = quest::CQuestManager::Instance();
quest::PC* pPC = q.GetPC(GetPlayerID());
if (!pPC) { //@fixme462
//sys_err("Nullpointer when trying to set questflag %s for player with pid %lu", flag.c_str(), pid);
return;
}
pPC->SetFlag(flag, value);
}
and this function:
C++:
int CHARACTER::GetQuestFlag(const std::string& flag) const
change to:
C++:
int CHARACTER::GetQuestFlag(const std::string& flag) const
{
if (!IsPC())
{
sys_err("Trying to get qf %s from non player character", flag.c_str());
return 0;
}
quest::CQuestManager& q = quest::CQuestManager::Instance();
quest::PC* pPC = q.GetPC(GetPlayerID());
if (!pPC) { //@fixme462
//sys_err("Nullpointer when trying to access questflag %s for player with pid %lu", flag.c_str(), pid);
return 0;
}
return pPC->GetFlag(flag);
}
- Durum
- Üzgünüz bu konu cevaplar için kapatılmıştır...
Şu an konuyu görüntüleyenler (Toplam : 0, Üye: 0, Misafir: 0)
Benzer konular
- Cevaplar
- 6
- Görüntüleme
- 296
- Cevaplar
- 13
- Görüntüleme
- 1K
- Cevaplar
- 16
- Görüntüleme
- 635
- Cevaplar
- 37
- Görüntüleme
- 2K