sylwek219awp 2 Posted November 13, 2018 Share Posted November 13, 2018 Hi guys ! I want to add something but after /gmake command putty give me back this https://pastebin.com/HiLbSXei Do u know wher is a problem and how i can fix this? Sorry for my gramma and thanks for all answers. Link to comment Share on other sites More sharing options...
Premium Jira 458 Posted November 13, 2018 Premium Share Posted November 13, 2018 add the file.cpp in your makefile i think ` ItemShopManager` Link to comment Share on other sites More sharing options...
sylwek219awp 2 Posted November 13, 2018 Author Share Posted November 13, 2018 31 minut temu, Shelby napisał: add the file.cpp in your makefile i think ` ItemShopManager` Ok bro ! true But after this on my bsd i have other problem itemshop_manager.cpp: In member function 'void CItemShopManager::BuyItem(CHARACTER*, DWORD, DWORD)': itemshop_manager.cpp:133: warning: comparison between signed and unsigned integer expressions itemshop_manager.cpp: In member function 'bool CItemShopManager::IsEditor(CHARACTER*)': itemshop_manager.cpp:279: error: ISO C++ forbids declaration of 'it' with no type itemshop_manager.cpp:279: error: cannot convert '__gnu_cxx::__normal_iterator<char**, std::vector<char*, std::allocator<char*> > >' to 'int' in initialization itemshop_manager.cpp:279: error: no match for 'operator!=' in 'it != ((CItemShopManager*)this)->CItemShopManager::m_vec_pkEditors.std::vector<_Tp, _Alloc>::end [with _Tp = char*, _Alloc = std::allocator<char*>]()' affect_flag.h:64: note: candidates are: bool operator!=(const TAffectFlag&, const TAffectFlag&) itemshop_manager.cpp:281: error: invalid type argument of 'unary *' gmake: *** [OBJDIR/itemshop_manager.o] Error 1 And hier u have this function: void CItemShopManager::AddEditor(char* szName) { m_vec_pkEditors.push_back(szName); } bool CItemShopManager::IsEditor(LPCHARACTER ch) { for (auto it = m_vec_pkEditors.begin(); it!= m_vec_pkEditors.end(); ++it ) { char* szEditorName = *(it); if (strcmp(ch->GetName(), szEditorName) == 0) return true; } return false; } Link to comment Share on other sites More sharing options...
Premium Jira 458 Posted November 14, 2018 Premium Share Posted November 14, 2018 what compiler? try Spoiler bool CItemShopManager::IsEditor(LPCHARACTER ch) { for (itertype(m_vec_pkEditors) it = m_vec_pkEditors.begin(); it!= m_vec_pkEditors.end(); ++it ) { char* szEditorName = *(it); if (strcmp(ch->GetName(), szEditorName) == 0) return true; } return false; } Link to comment Share on other sites More sharing options...
sylwek219awp 2 Posted November 14, 2018 Author Share Posted November 14, 2018 13 godzin temu, Shelby napisał: what compiler? try Odkryj ukrytą treść bool CItemShopManager::IsEditor(LPCHARACTER ch) { for (itertype(m_vec_pkEditors) it = m_vec_pkEditors.begin(); it!= m_vec_pkEditors.end(); ++it ) { char* szEditorName = *(it); if (strcmp(ch->GetName(), szEditorName) == 0) return true; } return false; } Huge +++++++ for this gentelman Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now