gmake: *** [obj/char.o] Error 1
gmake: *** Waiting for unfinished jobs....
cmd_general.cpp: In function 'void do_shop_update_item(CHARACTER*, const char*, int, int)':
cmd_general.cpp:1586: warning: comparison is always false due to limited range of data type
cmd_general.cpp:1590: warning: comparison is always false due to limited range of data type
cmd_general.cpp:1595: warning: comparison is always false due to limited range of data type
cmd_general.cpp: In function 'void do_shop_refresh_items(CHARACTER*, const char*, int, int)':
cmd_general.cpp:1768: warning: operation on 'col' may be undefined
cmd_general.cpp:1757: warning: unused variable 'c'
cmd_general.cpp: In function 'void do_shop_delete(CHARACTER*, const char*, int, int)':
cmd_general.cpp:1844: warning: 'id' may be used uninitialized in this function
cmd_general.cpp:1861: warning: 'id' may be used uninitialized in this function
cmd_general.cpp: In function 'bool GetGift(CHARACTER*, DWORD, bool)':
cmd_general.cpp:1061: warning: 'vnum' may be used uninitialized in this function
cmd_general.cpp: In function 'void do_gift_get(CHARACTER*, const char*, int, int)':
cmd_general.cpp:1175: warning: 'id' may be used uninitialized in this function
cmd_general.cpp: In function 'void do_shop_update_item(CHARACTER*, const char*, int, int)':
cmd_general.cpp:1448: warning: 'shop_id' may be used uninitialized in this function
cmd_general.cpp:1488: warning: 'item_id' may be used uninitialized in this function
cmd_general.cpp:1490: warning: 'price' may be used uninitialized in this function
cmd_general.cpp:1504: warning: 'item_id' may be used uninitialized in this function
cmd_general.cpp:1583: warning: 'display_pos' may be used uninitialized in this function
cmd_general.cpp:1588: warning: 'pos' may be used uninitialized in this function
cmd_general.cpp:1593: warning: 'window_type' may be used uninitialized in this function
cmd_general.cpp:1602: warning: 'price' may be used uninitialized in this function
cmd_general.cpp:1617: warning: 'temp' may be used uninitialized in this function
root@host:/usr/src/azerty/Server/game/src #
Ma poate ajuta cineva cu rezolvarea lor?
Stiu ca problema este in cmd_general.cpp insa in acest fisier am fost nevoit sa inlocuiesc o functie mica cu una foarte mare si sunt putin depasit de situatie...
Am atasat acestui mesaj lista de erori din putty.
Multumesc anticipat!
Cu cat inveti mai mult, cu atat iti dai seama ca stii mai putin.
obj/cmd_general.o: In function `_UpdateOfflineShop(unsigned int, bool, bool, bool)':
/usr/src/azerty/Server/game/src/cmd_general.cpp:1418: undefined reference to `CHARACTER::SetShopEditModeTick()'
/usr/src/azerty/Server/game/src/cmd_general.cpp:1422: undefined reference to `CHARACTER::SetShopEditMode(bool)'
obj/input_db.o: In function `CInputDB::ShopUpdateItem(char const*)':
/usr/src/azerty/Server/game/src/input_db.cpp:1910: undefined reference to `CHARACTER::SetShopEditModeTick()'
/usr/src/azerty/Server/game/src/input_db.cpp:1914: undefined reference to `CHARACTER::SetShopEditMode(bool)'
obj/shop_manager.o: In function `CShopManager::StartOfflineShop(unsigned int, bool)':
/usr/src/azerty/Server/game/src/shop_manager.cpp:286: undefined reference to `CHARACTER::StartShopEditModeEvent()'
gmake: *** [../game] Error 1
root@host:/usr/src/azerty/Server/game/src #
Cu cat inveti mai mult, cu atat iti dai seama ca stii mai putin.
Am urmat adaugarile din implementare nu bag mana in foc ca am facut totul bine. Acum tot compar fisierele mele cu altele sa vad unde poate fi problema dar nu imi dau seama
Cu cat inveti mai mult, cu atat iti dai seama ca stii mai putin.