Jump to content

Ace system eroor to compile


Recommended Posts

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
root@bsd:/usr/mainline/Srcs/Server/game/src #

 

Edited by antrax16
Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



  • Similar Content

  • Activity

    1. 4

      Feeding game source to LLM

    2. 0

      Quest 6/7 Problem

    3. 5

      Effect weapons

    4. 0

      [C++] Fix Core Downer Using Negative Number in GM Codes

    5. 3

      Crystal Metinstone

    6. 4

      Feeding game source to LLM

    7. 113

      Ulthar SF V2 (TMP4 Base)

    8. 4

      Feeding game source to LLM

  • Recently Browsing

    • No registered users viewing this page.
×
×
  • 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.