Jump to content

Recommended Posts

Good morning ..

i dont know why..

 

Fehler    288    error C2065: 'item': nichtdeklarierter Bezeichner  InstanceBase.cpp    2645    1    UserInterface
Fehler    289    error C2227: Links von "->GetType" muss sich ein Zeiger auf Klassen-/Struktur-/Union-/generischen Typ befinden.    InstanceBase.cpp    2645    1    UserInterface
Fehler    290    error C2059: Syntaxfehler: ')'   InstanceBase.cpp    2645    1    UserInterface
Fehler    291    error C2143: Syntaxfehler: Es fehlt ')' vor '}'    InstanceBase.cpp    2667    1    UserInterface
Fehler    292    error C2143: Syntaxfehler: Es fehlt ';' vor ')'    InstanceBase.cpp    2667    1    UserInterface

 

Link to comment
https://metin2.dev/topic/13512-compile-error/
Share on other sites

  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

  • Honorable Member

Could you post the InstanceBase.cpp? So we can see the code and help you!

 

"Nothing's free in this life.

Ignorant people have an obligation to make up for their ignorance by paying those who help them.

Either you got the brains or cash, if you lack both you're useless."

Syreldar

Link to comment
https://metin2.dev/topic/13512-compile-error/#findComment-77146
Share on other sites

Of Course!
 

this function says my visual Studio..

What is wrong?

void CInstanceBase::SetAcce(DWORD eAcce)
{
    if (IsPC() == false)
        return;

    //__ClearAcceRefineEffect();
    //long lAbsChance = 0;
    //float fSpecularPower = 0.0f;
    //int iItemIndex = CPythonPlayer::Instance().GetItemIndex(TItemPos(INVENTORY, c_Costume_Slot_Acce));
    //if (iItemIndex > 0)
    //{
    //    CItemManager::Instance().SelectItemData(iItemIndex);
    //    CItemData * pItemData = CItemManager::Instance().GetSelectedItemDataPointer();
    if (item->GetType(() == CItemData::ITEM_TYPE_COSTUME && item->GetSubType() == CItemData::COSTUME_ACCE)
        //    {
        //        fSpecularPower = pItemData->GetSpecularPowerf();
        //        lAbsChance = CPythonPlayer::Instance().GetItemMetinSocket(TItemPos(INVENTORY, c_Costume_Slot_Acce), 1);
        //        if (lAbsChance >= 19)
        //        {
        //            m_acceEffect = EFFECT_REFINED+EFFECT_ACCE_SPECIAL;
        //            __EffectContainer_AttachEffect(m_acceEffect);
        //        }
        //    }
        //}

        m_awPart[CRaceData::PART_ACCE] = eAcce;
    m_GraphicThingInstance.SetAcce(eAcce);
    //if (lAbsChance >= 19)
    //{
    //    m_GraphicThingInstance.SetAcce(eAcce, fSpecularPower);
    //}
    //else
    //{
    //    m_GraphicThingInstance.SetAcce(eAcce);
    //}
}

 

Link to comment
https://metin2.dev/topic/13512-compile-error/#findComment-77147
Share on other sites

Spoiler

void CInstanceBase::SetAcce(DWORD eAcce)   // Line 2632
{
    if (IsPC() == false)
        return;

    //__ClearAcceRefineEffect();
    //long lAbsChance = 0;
    //float fSpecularPower = 0.0f;
    //int iItemIndex = CPythonPlayer::Instance().GetItemIndex(TItemPos(INVENTORY, c_Costume_Slot_Acce));
    //if (iItemIndex > 0)
    //{
    //    CItemManager::Instance().SelectItemData(iItemIndex);
    //    CItemData * pItemData = CItemManager::Instance().GetSelectedItemDataPointer();
    if (item->GetType(() == CItemData::ITEM_TYPE_COSTUME && item->GetSubType() == CItemData::COSTUME_ACCE) // 2645
        //    {
        //        fSpecularPower = pItemData->GetSpecularPowerf();
        //        lAbsChance = CPythonPlayer::Instance().GetItemMetinSocket(TItemPos(INVENTORY, c_Costume_Slot_Acce), 1);
        //        if (lAbsChance >= 19)
        //        {
        //            m_acceEffect = EFFECT_REFINED+EFFECT_ACCE_SPECIAL;
        //            __EffectContainer_AttachEffect(m_acceEffect);
        //        }
        //    }
        //}

        m_awPart[CRaceData::PART_ACCE] = eAcce;
    m_GraphicThingInstance.SetAcce(eAcce);
    //if (lAbsChance >= 19)
    //{
    //    m_GraphicThingInstance.SetAcce(eAcce, fSpecularPower);
    //}
    //else
    //{
    //    m_GraphicThingInstance.SetAcce(eAcce);
    //}
}  // Line 2667

 

Link to comment
https://metin2.dev/topic/13512-compile-error/#findComment-77161
Share on other sites

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • 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.