Yardım Buy with ıtem shop db build hatası

Konu sahibi bu konuda soru soruyor. Sorusu ile ilgili bilgisi olanların yanıtlamasını bekliyor.

damador

MT Üye
MT Üye
Mesaj
163
Çözümler
7
Beğeni
47
Puan
489
Ticaret Puanı
0
Markette yang yerine itemle eşya satma için başka bir forumda bulduğum sistemi eklerken boyle bır hata alıyorum
ClientManagerBoot.cpp
eklenen kod:
#ifdef ENABLE_BUY_WITH_ITEM
        str_to_number(pItem->witemVnum, data[col++]);
#endif

hata:
compiling ClientManagerBoot.cpp
ClientManagerBoot.cpp: In member function 'bool CClientManager::InitializeShopTable()':
ClientManagerBoot.cpp:322:24: error: 'TShopItemTable' {aka 'struct SShopItemTable'} has no member named 'witemVnum'
   str_to_number(pItem->witemVnum, data[col++]);
                        ^~~~~~~~~
gmake: *** [Makefile:80: .obj/ClientManagerBoot.o] Error 1
 
tables.h dosyasında eksik var sanırım.
TShopItemTable tablosunu kontrol et. Bu tabloda witemVnum adında bir tanım yok diyor.
 
kod tablonun içinde ekli

Kod:
typedef struct SShopItemTable
{
    DWORD        vnum;
    BYTE        count;

    TItemPos    pos;
    DWORD        price;
#ifdef ENABLE_BUY_WITH_ITEM
    DWORD        witemVnum;
#endif
    BYTE        display_pos;
} TShopItemTable;
 
O zaman aynı dosyanın en üstüne uygun bir yere #include "service.h" eklemeyi dene
 
Geri
Üst