Zorke scrie:Nu ai declarat într-o bibliotecă "dice" , probabil nu ai schimbat în exchange.h asta
// [SEARCH]
CExchange(LPCHARACTER pOwner);
// [REPLACE]
CExchange(LPCHARACTER pOwner, BYTE dice);
exchange.cpp: In function 'void exchange_packet(LPCHARACTER, BYTE, bool, long long int, TItemPos, DWORD, void*)':
exchange.cpp:41:13: error: 'struct packet_exchange' has no member named 'dice'
pack_exchg.dice = dice;
^
exchange.cpp: At global scope:
exchange.cpp:64:6: error: prototype for 'bool CHARACTER::ExchangeStart(LPCHARACTER, BYTE)' does not match any in class 'CHARACTER'
bool CHARACTER::ExchangeStart(LPCHARACTER victim, BYTE dice)
^
In file included from exchange.cpp:6:0:
char.h

10: error: candidate is: bool CHARACTER::ExchangeStart(LPCHARACTER)
bool ExchangeStart(LPCHARACTER victim);
^
exchange.cpp: In constructor 'CExchange::CExchange(LPCHARACTER, BYTE)':
exchange.cpp:149:2: error: 'm_lDice' was not declared in this scope
m_lDice = dice;
^
exchange.cpp: In member function 'bool CExchange::AddItem(TItemPos, BYTE)':
exchange.cpp:227:5: error: 'm_lDice' was not declared in this scope
m_lDice,
^
exchange.cpp: In member function 'bool CExchange::RemoveItem(BYTE)':
exchange.cpp:261:82: error: 'm_lDice' was not declared in this scope
exchange_packet(GetOwner(), EXCHANGE_SUBHEADER_GC_ITEM_DEL, true, pos, NPOS, 0, m_lDice);
^
exchange.cpp: In member function 'bool CExchange::AddGold(long long int)':
exchange.cpp:282:6: error: 'm_lDice' was not declared in this scope
if (m_lDice == 1)
^
exchange.cpp:288:79: error: 'm_lDice' was not declared in this scope
exchange_packet(GetOwner(), EXCHANGE_SUBHEADER_GC_LESS_GOLD, 0, 0, NPOS, 0, m_lDice);
^
exchange.cpp:300:86: error: 'm_lDice' was not declared in this scope
exchange_packet(GetOwner(), EXCHANGE_SUBHEADER_GC_GOLD_ADD, true, m_lGold, NPOS, 0, m_lDice);
^
exchange.cpp: In member function 'bool CExchange::Accept(bool)':
exchange.cpp:607:7: error: 'm_lDice' was not declared in this scope
if (m_lDice == 1)
^
exchange.cpp:702:2: error: expected '}' before 'else'
else
^
exchange.cpp:705:87: error: 'm_lDice' was not declared in this scope
exchange_packet(GetOwner(), EXCHANGE_SUBHEADER_GC_ACCEPT, true, m_bAccept, NPOS, 0, m_lDice);
^
exchange.cpp: In member function 'void CExchange::Cancel()':
exchange.cpp:714:72: error: 'm_lDice' was not declared in this scope
exchange_packet(GetOwner(), EXCHANGE_SUBHEADER_GC_END, 0, 0, NPOS, 0, m_lDice);
^
gmake: *** [.obj/exchange.o] Error 1