Çözüldü Game Src Build Hatası

Bu konu çözüme ulaştırılmıştır. Çözüm için konuya yazılan tüm yorumları okumayı unutmayın. Eğer konudaki yorumlar sorununuzu çözmediyse yeni bir konu açabilirsiniz.
Durum
İçerik kilitlendiği için mesaj gönderimine kapatıldı.

DeucaLions

Üye
Üye
Mesaj
4
Çözümler
1
Beğeni
0
Puan
406
Ticaret Puanı
0
Game Src build ederken şöyle bir hata alıyorum

Hata Kodu:
shop.cpp:174: error: 'struct SShopItemTable' has no member named 'witemVnum'
shop.cpp: In member function 'virtual int CShop::Buy(CHARACTER*, BYTE)':
shop.cpp:262: error: 'item' was not declared in this scope
shop.cpp:264: error: 'item' was not declared in this scope
shop.cpp:266: error: 'item' was not declared in this scope
shop.cpp:284: error: 'item' was not declared in this scope
shop.cpp:297: error: 'item' was not declared in this scope
shop.cpp:302: error: 'item' was not declared in this scope
shop.cpp:346: error: 'item' was not declared in this scope
shop.cpp:391: error: 'item' was not declared in this scope
shop.cpp:395: error: 'item' was not declared in this scope
shop.cpp:406: error: 'item' was not declared in this scope
 

Dosya Eklentileri

  • Screenshot_2.png
    Screenshot_2.png
    28,3 KB · Gösterim: 129
common -> tables.h
ENABLE_BUY_WITH_ITEM bu sistemi eklerken burayı atlamış olabilirmisin.

C++:
typedef struct SShopItemTable
{
    DWORD        vnum;
    BYTE        count;

    TItemPos    pos;            // PC 상점에만 이용
    DWORD        price;    // PC, shop_table_ex.txt 상점에만 이용
#ifdef ENABLE_BUY_WITH_ITEM
    DWORD        witemVnum;
#endif
    BYTE        display_pos; // PC, shop_table_ex.txt 상점에만 이용, 보일 위치.
} TShopItemTable;
 
Vallahi Anlamadım item var. Neden hata veriyor hiç bir fikrim yok.
1602081538616.png
 
Sorunu Çözdüm Shop.cpp de bi Kod Blogu Yanlış verilmiş başka filesten alarak halettim yardımın için teşekürler
 
Çözüm
Çözüldüğüne göre konu kilitlenmiştir. Soru-cevap konularının daha verimli işleyebilmesi için kodlarınızı ve hata mesajlarını resim olarak eklemek yerine kod editörüne ekleyebilirsiniz. Böylelikle kodlarda yer alan hataları rahatlıkla düzenleyebiliriz.
 
Durum
İçerik kilitlendiği için mesaj gönderimine kapatıldı.
Geri
Üst