Jump to content
×
×
  • Create New...
  • 0

Ace system eroor to compile


antrax16

Question

Hey 

I try to add ace system but i have a problem with game compile . 

Eroot in item_manager.cpp 

befer add this function

void ITEM_MANAGER::RemoveItem(LPITEM item, const char * c_pszReason) 
{
    LPCHARACTER o;
    if ((o = item->GetOwner()))
    {
        char szHint[64];
        snprintf(szHint, sizeof(szHint), "%s %u ", item->GetName(), item->GetCount());
        if (item->GetOwner()->IsAcceOpen())
        {
            Acce_delete_item(item->GetOwner(), 0);
            Acce_delete_item(item->GetOwner(), 1);
        }
        
        LogManager::instance().ItemLog(o, item, c_pszReason ? c_pszReason : "REMOVE", szHint);
        if (item->GetWindow() == MALL || item->GetWindow() == SAFEBOX)
        {
            CSafebox* pSafebox = item->GetWindow() == MALL ? o->GetMall() : o->GetSafebox();
            if (pSafebox)
            {
                pSafebox->Remove(item->GetCell());
            }
        }
        else
        {
            o->SyncQuickslot(QUICKSLOT_TYPE_ITEM, item->GetCell(), 255);
            item->RemoveFromCharacter();
        }
    }

    M2_DESTROY_ITEM(item);
}
compiling item_manager.cpp
item_manager.cpp:500:6: error: redefinition of 'void ITEM_MANAGER::RemoveItem(LPITEM, const char*)'
 void ITEM_MANAGER::RemoveItem(LPITEM item, const char * c_pszReason)
      ^
item_manager.cpp:447:6: error: 'void ITEM_MANAGER::RemoveItem(LPITEM, const char*)' previously defined here
 void ITEM_MANAGER::RemoveItem(LPITEM item, const char * c_pszReason)
      ^
Makefile:189: recipe for target '.obj/item_manager.o' failed
gmake: *** [.obj/item_manager.o] Error 1
[email protected]:/usr/mainline/Srcs/Server/game/src #

 

Edited by antrax16
Link to comment
Share on other sites

  • Answers 0
  • Created
  • Last Reply

Top Posters For This Question

Popular Days

Top Posters For This Question

Popular Days

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


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.