Guten Tag epvp,
Ich habe den Source von RoC genommen und dann den vorgegeben Petfilter eingefügt, doch dabei bekomme ich Errors beim Compilen
Hier sind die zeilen
ich holfe ihr könnt mir helfen.
mfg Sony
Ich habe den Source von RoC genommen und dann den vorgegeben Petfilter eingefügt, doch dabei bekomme ich Errors beim Compilen
Code:
\Users\Source\_AIInterface\AIPet.cpp(118) : error C2065: 'pOwner' : undeclared identifier
\Users\Erwin\Source\_AIInterface\AIPet.cpp(118) : error C2227: left of '->m_dwPetfilter' must point to class/struct/union
type is ''unknown-type''
\Users\Source\_AIInterface\AIPet.cpp(120) : error C2181: illegal else without matching if
\Users\Source\_AIInterface\AIPet.cpp(120) : error C2227: left of '->m_dwPetfilter' must point to class/struct/union
type is ''unknown-type''
\Users\Source\_AIInterface\AIPet.cpp(120) : error C2065: 'pItem' : undeclared identifier
\Users\Source\_AIInterface\AIPet.cpp(120) : error C2227: left of '->GetPropA' must point to class/struct/union
type is ''unknown-type''
\Users\Source\_AIInterface\AIPet.cpp(120) : error C2227: left of '->dwItemKind1' must point to class/struct/union
\Users\Source\_AIInterface\AIPet.cpp(120) : error C3861: 'pOwner': identifier not found, even with argument-dependent lookup
\Users\Source\_AIInterface\AIPet.cpp(121) : error C2065: 'b1' : undeclared identifier
\Users\Source\_AIInterface\AIPet.cpp(122) : error C2227: left of '->m_dwPetfilter' must point to class/struct/union
type is ''unknown-type''
\Users\Source\_AIInterface\AIPet.cpp(122) : error C2227: left of '->GetPropA' must point to class/struct/union
type is ''unknown-type''
\Users\Source\_AIInterface\AIPet.cpp(122) : error C2227: left of '->dwItemKind1' must point to class/struct/union
\Users\Source\_AIInterface\AIPet.cpp(122) : error C3861: 'pOwner': identifier not found, even with argument-dependent lookup
\Users\Source\_AIInterface\AIPet.cpp(122) : error C3861: 'pItem': identifier not found, even with argument-dependent lookup
\Users\Source\_AIInterface\AIPet.cpp(123) : error C3861: 'b1': identifier not found, even with argument-dependent lookup
\Users\Source\_AIInterface\AIPet.cpp(124) : error C2227: left of '->m_dwPetfilter' must point to class/struct/union
type is ''unknown-type''
\Users\Source\_AIInterface\AIPet.cpp(124) : error C2227: left of '->GetPropA' must point to class/struct/union
type is ''unknown-type''
\Users\Source\_AIInterface\AIPet.cpp(124) : error C2227: left of '->dwItemKind2' must point to class/struct/union
\Users\Source\_AIInterface\AIPet.cpp(124) : error C3861: 'pOwner': identifier not found, even with argument-dependent lookup
\Users\Source\_AIInterface\AIPet.cpp(124) : error C3861: 'pItem': identifier not found, even with argument-dependent lookup
\Users\Source\_AIInterface\AIPet.cpp(125) : error C3861: 'b1': identifier not found, even with argument-dependent lookup
\Users\Source\_AIInterface\AIPet.cpp(126) : error C2227: left of '->m_dwPetfilter' must point to class/struct/union
type is ''unknown-type''
\Users\Source\_AIInterface\AIPet.cpp(126) : error C2227: left of '->GetPropA' must point to class/struct/union
type is ''unknown-type''
\Users\Source\_AIInterface\AIPet.cpp(126) : error C2227: left of '->dwItemKind2' must point to class/struct/union
\Users\Source\_AIInterface\AIPet.cpp(126) : error C3861: 'pOwner': identifier not found, even with argument-dependent lookup
\Users\Source\_AIInterface\AIPet.cpp(126) : error C3861: 'pItem': identifier not found, even with argument-dependent lookup
\Users\Source\_AIInterface\AIPet.cpp(127) : error C3861: 'b1': identifier not found, even with argument-dependent lookup
\Users\Source\_AIInterface\AIPet.cpp(128) : error C2227: left of '->m_dwPetfilter' must point to class/struct/union
type is ''unknown-type''
\Users\Source\_AIInterface\AIPet.cpp(128) : error C2227: left of '->GetPropA' must point to class/struct/union
type is ''unknown-type''
\Users\Source\_AIInterface\AIPet.cpp(128) : error C2227: left of '->dwItemKind1' must point to class/struct/union
\Users\Source\_AIInterface\AIPet.cpp(128) : error C3861: 'pOwner': identifier not found, even with argument-dependent lookup
\Users\Source\_AIInterface\AIPet.cpp(128) : error C3861: 'pItem': identifier not found, even with argument-dependent lookup
\Users\Source\_AIInterface\AIPet.cpp(129) : error C3861: 'b1': identifier not found, even with argument-dependent lookup
\Users\Source\_AIInterface\AIPet.cpp(130) : error C2227: left of '->m_dwPetfilter' must point to class/struct/union
type is ''unknown-type''
\Users\Source\_AIInterface\AIPet.cpp(130) : error C2227: left of '->GetPropA' must point to class/struct/union
type is ''unknown-type''
\Users\Source\_AIInterface\AIPet.cpp(130) : error C2227: left of '->dwItemKind2' must point to class/struct/union
\Users\Source\_AIInterface\AIPet.cpp(130) : error C3861: 'pOwner': identifier not found, even with argument-dependent lookup
\Users\Source\_AIInterface\AIPet.cpp(130) : error C3861: 'pItem': identifier not found, even with argument-dependent lookup
\Users\Source\_AIInterface\AIPet.cpp(131) : error C3861: 'b1': identifier not found, even with argument-dependent lookup
\Users\Source\_AIInterface\AIPet.cpp(132) : error C2227: left of '->m_dwPetfilter' must point to class/struct/union
type is ''unknown-type''
\Users\Source\_AIInterface\AIPet.cpp(132) : error C2227: left of '->GetPropA' must point to class/struct/union
type is ''unknown-type''
\Users\Source\_AIInterface\AIPet.cpp(132) : error C2227: left of '->dwItemKind2' must point to class/struct/union
\Users\Source\_AIInterface\AIPet.cpp(132) : error C3861: 'pOwner': identifier not found, even with argument-dependent lookup
\Users\Source\_AIInterface\AIPet.cpp(132) : error C3861: 'pItem': identifier not found, even with argument-dependent lookup
\Users\Source\_AIInterface\AIPet.cpp(133) : error C3861: 'b1': identifier not found, even with argument-dependent lookup
\Users\Source\_AIInterface\AIPet.cpp(134) : error C2227: left of '->m_dwPetfilter' must point to class/struct/union
type is ''unknown-type''
\Users\_AIInterface\AIPet.cpp(134) : error C2227: left of '->GetPropA' must point to class/struct/union
type is ''unknown-type''
\Users\Source\_AIInterface\AIPet.cpp(134) : error C2227: left of '->dwItemKind2' must point to class/struct/union
\Users\Source\_AIInterface\AIPet.cpp(134) : error C3861: 'pOwner': identifier not found, even with argument-dependent lookup
\Users\\_AIInterface\AIPet.cpp(134) : error C3861: 'pItem': identifier not found, even with argument-dependent lookup
\Users\Source\_AIInterface\AIPet.cpp(135) : error C3861: 'b1': identifier not found, even with argument-dependent lookup
AIMonster2.cpp
Code:
if( ((CUser*)pOwner)->m_dwPetfilter & FILTER_ENABLE )
{
else if( (((CUser*)pOwner)->m_dwPetfilter & FILTER_PENYA) && pItem->GetProp()->dwItemKind1 == IK1_GOLD )
b1 = FALSE;
else if( (((CUser*)pOwner)->m_dwPetfilter & FILTER_ARMOR) && pItem->GetProp()->dwItemKind1 == IK1_ARMOR )
b1 = FALSE;
else if( (((CUser*)pOwner)->m_dwPetfilter & FILTER_JEWELS) && pItem->GetProp()->dwItemKind2 == IK2_JEWELRY )
b1 = FALSE;
else if( (((CUser*)pOwner)->m_dwPetfilter & FILTER_FOOD) && pItem->GetProp()->dwItemKind2 == IK2_FOOD )
b1 = FALSE;
else if( (((CUser*)pOwner)->m_dwPetfilter & FILTER_WEAPON) && pItem->GetProp()->dwItemKind1 == IK1_WEAPON )
b1 = FALSE;
else if( (((CUser*)pOwner)->m_dwPetfilter & FILTER_POTION) && pItem->GetProp()->dwItemKind2 == IK2_POTION )
b1 = FALSE;
else if( (((CUser*)pOwner)->m_dwPetfilter & FILTER_QUEST) && pItem->GetProp()->dwItemKind2 == IK2_GEM )
b1 = FALSE;
else if( (((CUser*)pOwner)->m_dwPetfilter & FILTER_REFRESHER) && pItem->GetProp()->dwItemKind2 == IK2_REFRESHER )
b1 = FALSE;
}
mfg Sony