Jump to content

Metin2 VIP Src error


Recommended Posts

Can anyone tell me how to fix this?

In file included from vip.cpp:5:
vip.h:11: error: ISO C++ forbids declaration of 'TVIPTable' with no type
vip.h:11: error: expected ';' before '*' token
vip.h:12: error: 'TVIPTable' has not been declared
vip.h:19: error: 'TVIPTable' was not declared in this scope
vip.h:19: error: template argument 2 is invalid
vip.h:19: error: template argument 4 is invalid
vip.cpp: In member function 'void CVIPManager::Initialize()':
vip.cpp:20: error: request for member 'clear' in '((CVIPManager*)this)->CVIPManager::m_map_pkVIP', which is of non-class type 'int'
vip.cpp: In member function 'void CVIPManager::ClearVIPTable()':
vip.cpp:30: error: request for member 'empty' in '((CVIPManager*)this)->CVIPManager::m_map_pkVIP', which is of non-class type 'int'
vip.cpp:32: error: request for member 'clear' in '((CVIPManager*)this)->CVIPManager::m_map_pkVIP', which is of non-class type 'int'
vip.cpp: At global scope:
vip.cpp:36: error: prototype for 'bool CVIPManager::InsertVIP(TVIPTable*)' does not match any in class 'CVIPManager'
vip.h:12: error: candidate is: bool CVIPManager::InsertVIP(int*)
vip.cpp: In member function 'bool CVIPManager::InsertVIP(TVIPTable*)':
vip.cpp:38: error: request for member 'insert' in '((CVIPManager*)this)->CVIPManager::m_map_pkVIP', which is of non-class type 'int'
vip.cpp: At global scope:
vip.cpp:42: error: no 'TVIPTable* CVIPManager::FindVIP(int)' member function declared in class 'CVIPManager'
vip.cpp: In member function 'TVIPTable* CVIPManager::FindVIP(int)':
vip.cpp:44: error: ISO C++ forbids declaration of 'it' with no type
vip.cpp:44: error: request for member 'find' in '((CVIPManager*)this)->CVIPManager::m_map_pkVIP', which is of non-class type 'int'
vip.cpp:46: error: request for member 'end' in '((CVIPManager*)this)->CVIPManager::m_map_pkVIP', which is of non-class type 'int'
vip.cpp:51: error: base operand of '->' is not a pointer
vip.cpp: In member function 'void CVIPManager::GiveEffects(CHARACTER*)':
vip.cpp:61: error: ISO C++ forbids declaration of 'it' with no type
vip.cpp:61: error: request for member 'begin' in '((CVIPManager*)this)->CVIPManager::m_map_pkVIP', which is of non-class type 'int'
vip.cpp:63: error: request for member 'end' in '((CVIPManager*)this)->CVIPManager::m_map_pkVIP', which is of non-class type 'int'
vip.cpp:65: error: base operand of '->' is not a pointer
gmake: *** [OBJDIR_GAME/vip.o] Error 1
gmake: *** Waiting for unfinished jobs....

 

Link to comment
Share on other sites

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.