Beiträge von krokodysek

    compile char_item.cpp

    char_item.cpp:1913:70: error: no member named 'GetNewAttributeType' in 'CItem';

    did you mean 'GetAttributeType'?

    ...false, item->GetValue(0) * 60, item->GetNewAttributeType(0), item->GetNe...

    ^~~~~~~~~~~~~~~~~~~

    GetAttributeType

    ./item.h:120:9: note: 'GetAttributeType' declared here

    BYTE GetAttributeType(int i) { return m_aAttr...

    ^

    char_item.cpp:1913:100: error: no member named 'GetNewAttributeValue' in

    'CItem'; did you mean 'GetAttributeValue'?

    ...* 60, item->GetNewAttributeType(0), item->GetNewAttributeValue(0));

    ^~~~~~~~~~~~~~~~~~~~

    GetAttributeValue

    ./item.h:121:10: note: 'GetAttributeValue' declared here

    short GetAttributeValue(int i){ return m_aAttr...

    ^

    2 errors generated.



    need help with this error



    [SOLVED]

    thanks its working

    sorry i mean PythonApplicationModule


    this line


    Code
    1. #ifdef ENABLE_LEVEL_IN_TRADE
    2. PyModule_AddIntConstant(poModule, "ENABLE_LEVEL_IN_TRADE ", 1);
    3. #else
    4. PyModule_AddIntConstant(poModule, "ENABLE_LEVEL_IN_TRADE ", 0);
    5. #endif
    Code
    1. 1026 16:08:41550 :: File "game.py", line 940, in StartExchange
    2. 1026 16:08:41550 :: File "interfaceModule.py", line 631, in StartExchange
    3. 1026 16:08:41551 :: File "uiExchange.py", line 156, in OpenDialog
    4. 1026 16:08:41551 :: AttributeError
    5. 1026 16:08:41551 :: :
    6. 1026 16:08:41551 :: 'module' object has no attribute 'ENABLE_LEVEL_IN_TRADE'
    7. 1026 16:08:41551 ::

    not work


    my PythonApplicationModule:



    and locale_inc


    Code
    1. #define LOCALE_SERVICE_SINGAPORE // ˝Ě°ˇĆú
    2. //#define ENABLE_COSTUME_SYSTEM
    3. //#define ENABLE_ENERGY_SYSTEM
    4. //#define ENABLE_DRAGON_SOUL_SYSTEM
    5. #define ENABLE_NEW_EQUIPMENT_SYSTEM
    6. #define ENABLE_NEW_EXCHANGE_WINDOW
    Code
    1. 1025 19:44:43662 :: File "game.py", line 940, in StartExchange
    2. 1025 19:44:43662 :: File "interfaceModule.py", line 631, in StartExchange
    3. 1025 19:44:43663 :: File "uiExchange.py", line 156, in OpenDialog
    4. 1025 19:44:43663 :: AttributeError
    5. 1025 19:44:43663 :: :
    6. 1025 19:44:43663 :: 'module' object has no attribute 'ENABLE_LEVEL_IN_TRADE'
    7. 1025 19:44:43663 ::

    how to repair this problem