Hi @all
ich habe gerade versucht die server source, nachdem ich ein sash system einbauen wollte, zu kompilieren. dabei kam dieser fehler
char.h:2061: error: expected unqualified-id before 'protected'
char.h:2063: error: expected unqualified-id before 'public'
char.h: In function 'CItem** GetSashMaterials()':
char.h:2069: error: 'm_pointsInstant' was not declared in this scope
char.h: At global scope:
char.h:2079: error: expected declaration before '}' token
hier man der auszug der char.h um die es geht:
#ifdef __SASH_SYSTEM__
protected:
bool m_bSashCombination, m_bSashAbsorption;
public:
bool isSashOpened(bool bCombination) {return bCombination ? m_bSashCombination : m_bSashAbsorption;}
void OpenSash(bool bCombination);
void CloseSash();
void ClearSashMaterials();
bool CleanSashAttr(LPITEM pkItem, LPITEM pkTarget);
LPITEM* GetSashMaterials() {return m_pointsInstant.pSashMaterials;}
bool SashIsSameGrade(long lGrade);
DWORD GetSashCombinePrice(long lGrade);
void GetSashCombineResult(DWORD & dwItemVnum, DWORD & dwMinAbs, DWORD & dwMaxAbs);
BYTE CheckEmptyMaterialSlot();
void AddSashMaterial(TItemPos tPos, BYTE bPos);
void RemoveSashMaterial(BYTE bPos);
BYTE CanRefineSashMaterials();
void RefineSashMaterials();
#endif
};
ESex GET_SEX(LPCHARACTER ch);
bitte danke
=D