- Katılım
- 5 Şub 2021
- Konular
- 55
- Mesajlar
- 187
- Çözüm
- 14
- Online süresi
- 14d 6h
- Reaksiyon Skoru
- 30
- Altın Konu
- 0
- TM Yaşı
- 5 Yıl 4 Ay
- Başarım Puanı
- 95
- MmoLira
- 229
- DevLira
- 3
ROHAN2 WORLD 1-120 TR TİPİ OFFICIAL YOHARA, BALATHOR VE AMON! 80. GÜNÜNDE! +10.000 ONLİNE! HİLE VE BOT %100 ENGELLİ HEMEN TIKLA!
Merhaba arkadaşlar
Client build yaparken bu hatayı alıyorum farklı bir filesin dosyası ile karşılaştırdım arada bir fark göremedim bu kodu neden okumuyor olabilir bir bilginiz varmı acaba
[CODE lang="python" title="Aldığım hata arkadaşlar;:"]16>..\..\source\UserInterface\PythonShop.cpp(121): error C2065: 'm_aOfflineShoptabs' : undeclared identifier
16>..\..\source\UserInterface\PythonShop.cpp(121): error C2228: left of '.items' must have class/struct/union
16>..\..\source\UserInterface\PythonShop.cpp(148): error C2065: 'm_aOfflineShoptabs' : undeclared identifier
16>..\..\source\UserInterface\PythonShop.cpp(148): error C2228: left of '.items' must have class/struct/union
16>..\..\source\UserInterface\PythonShop.cpp(148): error C2228: left of '.vnum' must have class/struct/union
16>..\..\source\UserInterface\PythonShop.cpp(150): error C2065: 'm_aOfflineShoptabs' : undeclared identifier
16>..\..\source\UserInterface\PythonShop.cpp(150): error C2228: left of '.items' must have class/struct/union[/CODE]
Client build yaparken bu hatayı alıyorum farklı bir filesin dosyası ile karşılaştırdım arada bir fark göremedim bu kodu neden okumuyor olabilir bir bilginiz varmı acaba
[CODE lang="python" title="Aldığım hata arkadaşlar;:"]16>..\..\source\UserInterface\PythonShop.cpp(121): error C2065: 'm_aOfflineShoptabs' : undeclared identifier
16>..\..\source\UserInterface\PythonShop.cpp(121): error C2228: left of '.items' must have class/struct/union
16>..\..\source\UserInterface\PythonShop.cpp(148): error C2065: 'm_aOfflineShoptabs' : undeclared identifier
16>..\..\source\UserInterface\PythonShop.cpp(148): error C2228: left of '.items' must have class/struct/union
16>..\..\source\UserInterface\PythonShop.cpp(148): error C2228: left of '.vnum' must have class/struct/union
16>..\..\source\UserInterface\PythonShop.cpp(150): error C2065: 'm_aOfflineShoptabs' : undeclared identifier
16>..\..\source\UserInterface\PythonShop.cpp(150): error C2228: left of '.items' must have class/struct/union[/CODE]
En Çok Reaksiyon Alan Mesajlar
Sorun çözüldü
PythonShop.h dosyasında ''m_aOfflineShoptabs'' kodu ekli değilmiş kodu bu şekilde ekleyince sorun kalmadı.
Python:struct ShopTab { ShopTab() { coinType = SHOP_COIN_TYPE_GOLD; } BYTE coinType; std::string name; TShopItemData items[SHOP_HOST_ITEM_MAX_NUM]; }; struct OfflineShopTab { OfflineShopTab() { coinType = SHOP_COIN_TYPE_GOLD; } BYTE coinType; std::string name; #ifdef ENABLE_MAXIMUM_YANG_FOR_OFFLINE_SHOP TOfflineShopItemData items[OFFLINE_SHOP_HOST_ITEM_MAX_NUM]; #else TShopItemData items[OFFLINE_SHOP_HOST_ITEM_MAX_NUM]; #endif }; BYTE m_bTabCount; ShopTab m_aShoptabs[SHOP_TAB_COUNT_MAX]; OfflineShopTab m_aOfflineShoptabs[SHOP_TAB_COUNT_MAX]; typedef std::map<TItemPos, TShopItemTable> TPrivateShopItemStock; #ifdef ENABLE_MAXIMUM_YANG_FOR_OFFLINE_SHOP typedef std::map<TItemPos, TOfflineShopItemTable> TOfflineShopItemStock; #else typedef std::map<TItemPos, TShopItemTable> TOfflineShopItemStock; #endif TOfflineShopItemStock m_OfflineShopItemStock; TPrivateShopItemStock m_PrivateShopItemStock; };

