faiver
Esteemed Member
could help me with this error.
when I try to compile
14>C:\Users\fear\Downloads\TrinityCore\src\server\scripts\Custom\profesion.cpp(74): error C2039: 'GetSessionDbcLocal' : no es un miembro de 'ChatHandler'
14> C:/Users/fear/Downloads/TrinityCore/src/server/game/Chat\Chat.h(49) : vea la declaración de 'ChatHandler'
--------------------------
ChatHandler handler(pPlayer->GetSession());
char* skill_name;
SkillLineEntry const *SkillInfo = sSkillLineStore.LookupEntry(skill);
skill_name = SkillInfo->name[handler.GetSessionDbcLocal()];
----------------------------------------
when I try to compile
14>C:\Users\fear\Downloads\TrinityCore\src\server\scripts\Custom\profesion.cpp(74): error C2039: 'GetSessionDbcLocal' : no es un miembro de 'ChatHandler'
14> C:/Users/fear/Downloads/TrinityCore/src/server/game/Chat\Chat.h(49) : vea la declaración de 'ChatHandler'
--------------------------
ChatHandler handler(pPlayer->GetSession());
char* skill_name;
SkillLineEntry const *SkillInfo = sSkillLineStore.LookupEntry(skill);
skill_name = SkillInfo->name[handler.GetSessionDbcLocal()];
----------------------------------------