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; };
