Yardım K envanter kurulumunda Yardım

  • Konuyu açan Konuyu açan krmavsr
  • Açılış Tarihi Açılış Tarihi
  • Yanıt Yanıt 32
  • Gösterim Gösterim 313
Konu sahibi bu konuda soru soruyor. Sorusu ile ilgili bilgisi olanların yanıtlamasını bekliyor.

krmavsr

Üye
Üye
Mesaj
62
Çözümler
1
Beğeni
7
Puan
424
Ticaret Puanı
0
Envanteri 4'e yükselttim ancak K envanter için bazı kodları arattığımda bulamıyorum bu yüzden anlayan biri yardımcı olabilirse çok sevinirim.
 
Aradığının arasında boşluk vardır tamamını aramak yerine kelime olarak arat bulursun
hocam bu k envanterden önce 4 adet sekme yaptım oyunda ancak char.ccp de bazı kodları göremiyorum sadece kod kelimesiyle arasam da çıkmıyor. mesela anlatımda // Arat bool CHARACTER::pickupItem(DWORD dwVID) İçinde böyle bi kod var bakıyorum altında o dediği komutlar yok. yani altına ekle dediği komut yok yada korece oluyor
 
hocam bu k envanterden önce 4 adet sekme yaptım oyunda ancak char.ccp de bazı kodları göremiyorum sadece kod kelimesiyle arasam da çıkmıyor. mesela anlatımda // Arat bool CHARACTER::pickupItem(DWORD dwVID) İçinde böyle bi kod var bakıyorum altında o dediği komutlar yok. yani altına ekle dediği komut yok yada korece oluyor
aramanı CHARACTER::pickupItem olarak aratırsan çıkacaktır pickupitemden sonra boşluk koyulduysa bulamazsın
 
aramanı CHARACTER::pickupItem olarak aratırsan çıkacaktır pickupitemden sonra boşluk koyulduysa bulamazsın
yok hocam olmadı ama kendim parantez içindekileri bularak yapıyorum ancak şimdi başka bişeye takıldım char_item.ccp de 2 kere
// Arat LPITEM CHARACTER::AutoGiveItem(DWORD dwItemVnum, BYTE bCount, int iRarePct, bool bMsg) İçinde ( Yanlışlık yok iki defa var)
for (int i=0; i < INVENTORY_MAX_NUM; i++) var diyor ama ben bulamadım kodu aratınca aynı yer geliyor
 
Mesela bakın yeşil taraftakini bulup değiştirdim ancak 2. kere var dediği şey yok onun altındaki kodlar da yok mesela o satırın içerisinde
Ekran görüntüsü 2026-01-23 185901.webp
 
Bu tarz karşılaştırmalarla bir yere varamazsın. Kodlar 1-1 aynıysa, o oyun muhtemelen senin files olabilir. Ne yapınca sorun yaşıyorsan bunu açıkca belirtirsen yardımcı olabiliriz.
hocam sağdaki yüklemem gereken kodlar ancak solda öyle bir kod yok o yüzden atmıştım mesela :
bool CExchange::CheckSpace()
{
static CGrid s_grid1(INVENTORY_PAGE_COLUMN, INVENTORY_PAGE_ROW);
static CGrid s_grid2(INVENTORY_PAGE_COLUMN, INVENTORY_PAGE_ROW);
static CGrid s_grid3(INVENTORY_PAGE_COLUMN, INVENTORY_PAGE_ROW);
static CGrid s_grid4(INVENTORY_PAGE_COLUMN, INVENTORY_PAGE_ROW);

bu kod satırının altına eklenir diyor ancak bende



bool CExchange::CheckSpace()
{
static CGrid s_grid1 (5, INVENTORY_MAX_NUM/5 / 2); // inven page 1
static CGrid s_grid2 (5, INVENTORY_MAX_NUM/5 / 2); // inven page 2

olarak geçiyor o yüzden bu ss i verdim ekleyip eklemeyeceğimi anlayamadım
 
Bunun altına ekleyebilirsin.

clientte güncelledim ama böyle hata verdi kod neyi verdiyse onun altına girmiştim ama


client source:
Genişlet Daralt Kopyala
'c_Box_Inventory_Slot_Count': yeniden tanımlama; birden fazla başlatma
'c_Skill_Book_Inventory_Slot_Start': yeniden tanımlama; birden fazla başlatma
'const DWORD c_Skill_Book_Inventory_Slot_Start': yeniden tanımlama
'c_Skill_Book_Inventory_Slot_Count': yeniden tanımlama; birden fazla başlatma
'const DWORD c_Skill_Book_Inventory_Slot_Count': yeniden tanımlama
'c_Skill_Book_Inventory_Slot_End': yeniden tanımlama; birden fazla başlatma
'const DWORD c_Skill_Book_Inventory_Slot_End': yeniden tanımlama
'c_Upgrade_Items_Inventory_Slot_Start': yeniden tanımlama; birden fazla başlatma
'const DWORD c_Upgrade_Items_Inventory_Slot_Start': yeniden tanımlama
'c_Upgrade_Items_Inventory_Slot_Count': yeniden tanımlama; birden fazla başlatma
'const DWORD c_Upgrade_Items_Inventory_Slot_Count': yeniden tanımlama
'c_Upgrade_Items_Inventory_Slot_End': yeniden tanımlama; birden fazla başlatma
'const DWORD c_Upgrade_Items_Inventory_Slot_End': yeniden tanımlama
'c_Stone_Inventory_Slot_Start': yeniden tanımlama; birden fazla başlatma
'const DWORD c_Stone_Inventory_Slot_Start': yeniden tanımlama
'c_Stone_Inventory_Slot_Count': yeniden tanımlama; birden fazla başlatma
'const DWORD c_Stone_Inventory_Slot_Count': yeniden tanımlama
'c_Stone_Inventory_Slot_End': yeniden tanımlama; birden fazla başlatma
'const DWORD c_Stone_Inventory_Slot_End': yeniden tanımlama
'c_Box_Inventory_Slot_Start': yeniden tanımlama; birden fazla başlatma
'const DWORD c_Box_Inventory_Slot_Start': yeniden tanımlama
'const DWORD c_Box_Inventory_Slot_Count': yeniden tanımlama
'c_Box_Inventory_Slot_End': yeniden tanımlama; birden fazla başlatma
'const DWORD c_Box_Inventory_Slot_End': yeniden tanımlama
'c_Efsun_Inventory_Slot_Start': yeniden tanımlama; birden fazla başlatma
'const DWORD c_Efsun_Inventory_Slot_Start': yeniden tanımlama
'c_Efsun_Inventory_Slot_Count': yeniden tanımlama; birden fazla başlatma
'const DWORD c_Efsun_Inventory_Slot_Count': yeniden tanımlama
'c_Efsun_Inventory_Slot_End': yeniden tanımlama; birden fazla başlatma
'const DWORD c_Efsun_Inventory_Slot_End': yeniden tanımlama
'c_Cicek_Inventory_Slot_Start': yeniden tanımlama; birden fazla başlatma
'const DWORD c_Cicek_Inventory_Slot_Start': yeniden tanımlama
'c_Cicek_Inventory_Slot_Count': yeniden tanımlama; birden fazla başlatma
'const DWORD c_Cicek_Inventory_Slot_Count': yeniden tanımlama
'c_Cicek_Inventory_Slot_End': yeniden tanımlama; birden fazla başlatma
'const DWORD c_Cicek_Inventory_Slot_End': yeniden tanımlama
'c_Inventory_Count': yeniden tanımlama; birden fazla başlatma
'const DWORD c_Inventory_Count': yeniden tanımlama
 
hocam bu da server sourceden

Server_source:
Genişlet Daralt Kopyala
char_item.cpp: In member function 'void CHARACTER::SetItem(TItemPos, LPITEM)':
char_item.cpp:512:33: error: expected '}' before 'else'
  512 |                                 else
      |                                 ^~~~
char_item.cpp:498:9: note: to match this '{'
  498 |         {
      |         ^
char_item.cpp:516:33: error: break statement not within loop or switch
  516 |                                 break;
      |                                 ^~~~~
char_item.cpp:517:25: error: case label 'DRAGON_SOUL_INVENTORY' not within a swi                                                                                                                                                                                                                                             tch statement
  517 |                         case DRAGON_SOUL_INVENTORY:
      |                         ^~~~
char_item.cpp:519:33: error: break statement not within loop or switch
  519 |                                 break;
      |                                 ^~~~~
char_item.cpp: At global scope:
char_item.cpp:521:9: error: expected declaration before '}' token
  521 |         }
      |         ^
char_item.cpp:522:1: error: expected declaration before '}' token
  522 | }
      | ^
char_item.cpp:593:9: error: expected unqualified-id before 'for'
  593 |         for (i = 0; i < SKILL_BOOK_INVENTORY_MAX_NUM; ++i)
      |         ^~~
char_item.cpp:593:21: error: 'i' does not name a type
  593 |         for (i = 0; i < SKILL_BOOK_INVENTORY_MAX_NUM; ++i)
      |                     ^
char_item.cpp:593:55: error: expected unqualified-id before '++' token
  593 |         for (i = 0; i < SKILL_BOOK_INVENTORY_MAX_NUM; ++i)
      |                                                       ^~
char_item.cpp:605:9: error: expected unqualified-id before 'for'
  605 |         for (i = 0; i < UPGRADE_ITEMS_INVENTORY_MAX_NUM; ++i)
      |         ^~~
char_item.cpp:605:21: error: 'i' does not name a type
  605 |         for (i = 0; i < UPGRADE_ITEMS_INVENTORY_MAX_NUM; ++i)
      |                     ^
char_item.cpp:605:58: error: expected unqualified-id before '++' token
  605 |         for (i = 0; i < UPGRADE_ITEMS_INVENTORY_MAX_NUM; ++i)
      |                                                          ^~
char_item.cpp:617:9: error: expected unqualified-id before 'for'
  617 |         for (i = 0; i < STONE_INVENTORY_MAX_NUM; ++i)
      |         ^~~
char_item.cpp:617:21: error: 'i' does not name a type
  617 |         for (i = 0; i < STONE_INVENTORY_MAX_NUM; ++i)
      |                     ^
char_item.cpp:617:50: error: expected unqualified-id before '++' token
  617 |         for (i = 0; i < STONE_INVENTORY_MAX_NUM; ++i)
      |                                                  ^~
char_item.cpp:629:9: error: expected unqualified-id before 'for'
  629 |         for (i = 0; i < BOX_INVENTORY_MAX_NUM; ++i)
      |         ^~~
char_item.cpp:629:21: error: 'i' does not name a type
  629 |         for (i = 0; i < BOX_INVENTORY_MAX_NUM; ++i)
      |                     ^
char_item.cpp:629:48: error: expected unqualified-id before '++' token
  629 |         for (i = 0; i < BOX_INVENTORY_MAX_NUM; ++i)
      |                                                ^~
char_item.cpp:641:9: error: expected unqualified-id before 'for'
  641 |         for (i = 0; i < EFSUN_INVENTORY_MAX_NUM; ++i)
      |         ^~~
char_item.cpp:641:21: error: 'i' does not name a type
  641 |         for (i = 0; i < EFSUN_INVENTORY_MAX_NUM; ++i)
      |                     ^
char_item.cpp:641:50: error: expected unqualified-id before '++' token
  641 |         for (i = 0; i < EFSUN_INVENTORY_MAX_NUM; ++i)
      |                                                  ^~
char_item.cpp:653:9: error: expected unqualified-id before 'for'
  653 |         for (i = 0; i < CICEK_INVENTORY_MAX_NUM; ++i)
      |         ^~~
char_item.cpp:653:21: error: 'i' does not name a type
  653 |         for (i = 0; i < CICEK_INVENTORY_MAX_NUM; ++i)
      |                     ^
char_item.cpp:653:50: error: expected unqualified-id before '++' token
  653 |         for (i = 0; i < CICEK_INVENTORY_MAX_NUM; ++i)
      |                                                  ^~
char_item.cpp: In member function 'bool CHARACTER::IsEmptyItemGrid(TItemPos, BYT                                                                                                                                                                                                                                             E, int) const':
char_item.cpp:694:78: warning: comparison of integer expressions of different si                                                                                                                                                                                                                                             gnedness: 'const UINT' {aka 'const unsigned int'} and 'int' [-Wsign-compare]
  694 |                                         if (m_pointsInstant.bItemGrid[bC                                                                                                                                                                                                                                             ell] == iExceptionCell)
      |                                             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~                                                                                                                                                                                                                                             ~~~~~^~~~~~~~~~~~~~~~~
char_item.cpp:734:90: warning: comparison of integer expressions of different si                                                                                                                                                                                                                                             gnedness: 'const UINT' {aka 'const unsigned int'} and 'int' [-Wsign-compare]
  734 |                                                         if (m_pointsInst                                                                                                                                                                                                                                             ant.bItemGrid[p] != iExceptionCell)
      |                                                             ~~~~~~~~~~~~                                                                                                                                                                                                                                             ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
char_item.cpp:769:90: warning: comparison of integer expressions of different si                                                                                                                                                                                                                                             gnedness: 'const UINT' {aka 'const unsigned int'} and 'int' [-Wsign-compare]
  769 |                                                         if (m_pointsInst                                                                                                                                                                                                                                             ant.bItemGrid[p] != iExceptionCell)
      |                                                             ~~~~~~~~~~~~                                                                                                                                                                                                                                             ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
char_item.cpp:804:90: warning: comparison of integer expressions of different si                                                                                                                                                                                                                                             gnedness: 'const UINT' {aka 'const unsigned int'} and 'int' [-Wsign-compare]
  804 |                                                         if (m_pointsInst                                                                                                                                                                                                                                             ant.bItemGrid[p] != iExceptionCell)
      |                                                             ~~~~~~~~~~~~                                                                                                                                                                                                                                             ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
char_item.cpp:839:90: warning: comparison of integer expressions of different si                                                                                                                                                                                                                                             gnedness: 'const UINT' {aka 'const unsigned int'} and 'int' [-Wsign-compare]
  839 |                                                         if (m_pointsInst                                                                                                                                                                                                                                             ant.bItemGrid[p] != iExceptionCell)
      |                                                             ~~~~~~~~~~~~                                                                                                                                                                                                                                             ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
char_item.cpp:874:90: warning: comparison of integer expressions of different si                                                                                                                                                                                                                                             gnedness: 'const UINT' {aka 'const unsigned int'} and 'int' [-Wsign-compare]
  874 |                                                         if (m_pointsInst                                                                                                                                                                                                                                             ant.bItemGrid[p] != iExceptionCell)
      |                                                             ~~~~~~~~~~~~                                                                                                                                                                                                                                             ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
char_item.cpp:909:90: warning: comparison of integer expressions of different si                                                                                                                                                                                                                                             gnedness: 'const UINT' {aka 'const unsigned int'} and 'int' [-Wsign-compare]
  909 |                                                         if (m_pointsInst                                                                                                                                                                                                                                             ant.bItemGrid[p] != iExceptionCell)
      |                                                             ~~~~~~~~~~~~                                                                                                                                                                                                                                             ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
char_item.cpp:927:70: warning: comparison of integer expressions of different si                                                                                                                                                                                                                                             gnedness: 'const UINT' {aka 'const unsigned int'} and 'int' [-Wsign-compare]
  927 |                                 if (m_pointsInstant.bItemGrid[bCell] ==                                                                                                                                                                                                                                              iExceptionCell)
      |                                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~                                                                                                                                                                                                                                             ~~~~~~~~~~~~~~
char_item.cpp:952:90: warning: comparison of integer expressions of different si                                                                                                                                                                                                                                             gnedness: 'const UINT' {aka 'const unsigned int'} and 'int' [-Wsign-compare]
  952 |                                                         if (m_pointsInst                                                                                                                                                                                                                                             ant.bItemGrid[p] != iExceptionCell)
      |                                                             ~~~~~~~~~~~~                                                                                                                                                                                                                                             ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
char_item.cpp:992:82: warning: comparison of integer expressions of different si                                                                                                                                                                                                                                             gnedness: 'const UINT' {aka 'const unsigned int'} and 'int' [-Wsign-compare]
  992 |                                                 if (m_pointsInstant.bIte                                                                                                                                                                                                                                             mGrid[p] != iExceptionCell)
      |                                                     ~~~~~~~~~~~~~~~~~~~~                                                                                                                                                                                                                                             ~~~~~~~~~^~~~~~~~~~~~~~~~~
char_item.cpp: At global scope:
char_item.cpp:6092:9: error: expected unqualified-id before 'if'
 6092 |         if (true == item->isLocked())
      |         ^~
char_item.cpp:6097:9: error: expected unqualified-id before 'if'
 6097 |         if (!IsValidItemPosition (DestCell))
      |         ^~
char_item.cpp:6102:9: error: expected unqualified-id before 'if'
 6102 |         if (!CanHandleItem())
      |         ^~
char_item.cpp:6112:9: error: expected unqualified-id before 'if'
 6112 |         if (DestCell.IsBeltInventoryPosition() && false == CBeltInventor                                                                                                                                                                                                                                             yHelper::CanMoveIntoBeltInventory (item))
      |         ^~
char_item.cpp:6118:9: error: expected unqualified-id before 'if'
 6118 |         if (Cell.IsSkillBookInventoryPosition() && !DestCell.IsSkillBook                                                                                                                                                                                                                                             InventoryPosition())
      |         ^~
char_item.cpp:6123:9: error: expected unqualified-id before 'if'
 6123 |         if (Cell.IsUpgradeItemsInventoryPosition() && !DestCell.IsUpgrad                                                                                                                                                                                                                                             eItemsInventoryPosition())
      |         ^~
char_item.cpp:6128:9: error: expected unqualified-id before 'if'
 6128 |         if (Cell.IsStoneInventoryPosition() && !DestCell.IsStoneInventor                                                                                                                                                                                                                                             yPosition())
      |         ^~
char_item.cpp:6133:9: error: expected unqualified-id before 'if'
 6133 |         if (Cell.IsBoxInventoryPosition() && !DestCell.IsBoxInventoryPos                                                                                                                                                                                                                                             ition())
      |         ^~
char_item.cpp:6138:9: error: expected unqualified-id before 'if'
 6138 |         if (Cell.IsEfsunInventoryPosition() && !DestCell.IsEfsunInventor                                                                                                                                                                                                                                             yPosition())
      |         ^~
char_item.cpp:6143:9: error: expected unqualified-id before 'if'
 6143 |         if (Cell.IsCicekInventoryPosition() && !DestCell.IsCicekInventor                                                                                                                                                                                                                                             yPosition())
      |         ^~
char_item.cpp:6148:9: error: expected unqualified-id before 'if'
 6148 |         if (Cell.IsDefaultInventoryPosition() && DestCell.IsSkillBookInv                                                                                                                                                                                                                                             entoryPosition())
      |         ^~
char_item.cpp:6153:9: error: expected unqualified-id before 'if'
 6153 |         if (Cell.IsDefaultInventoryPosition() && DestCell.IsUpgradeItems                                                                                                                                                                                                                                             InventoryPosition())
      |         ^~
char_item.cpp:6158:9: error: expected unqualified-id before 'if'
 6158 |         if (Cell.IsDefaultInventoryPosition() && DestCell.IsStoneInvento                                                                                                                                                                                                                                             ryPosition())
      |         ^~
char_item.cpp:6163:9: error: expected unqualified-id before 'if'
 6163 |         if (Cell.IsDefaultInventoryPosition() && DestCell.IsBoxInventory                                                                                                                                                                                                                                             Position())
      |         ^~
char_item.cpp:6168:9: error: expected unqualified-id before 'if'
 6168 |         if (Cell.IsDefaultInventoryPosition() && DestCell.IsEfsunInvento                                                                                                                                                                                                                                             ryPosition())
      |         ^~
char_item.cpp:6173:9: error: expected unqualified-id before 'if'
 6173 |         if (Cell.IsDefaultInventoryPosition() && DestCell.IsCicekInvento                                                                                                                                                                                                                                             ryPosition())
      |         ^~
char_item.cpp:6178:9: error: expected unqualified-id before 'if'
 6178 |         if (Cell.IsEquipPosition() && DestCell.IsSkillBookInventoryPosit                                                                                                                                                                                                                                             ion())
      |         ^~
char_item.cpp:6183:9: error: expected unqualified-id before 'if'
 6183 |         if (Cell.IsEquipPosition() && DestCell.IsUpgradeItemsInventoryPo                                                                                                                                                                                                                                             sition())
      |         ^~
char_item.cpp:6188:9: error: expected unqualified-id before 'if'
 6188 |         if (Cell.IsEquipPosition() && DestCell.IsStoneInventoryPosition(                                                                                                                                                                                                                                             ))
      |         ^~
char_item.cpp:6193:9: error: expected unqualified-id before 'if'
 6193 |         if (Cell.IsEquipPosition() && DestCell.IsBoxInventoryPosition())
      |         ^~
char_item.cpp:6198:9: error: expected unqualified-id before 'if'
 6198 |         if (Cell.IsEquipPosition() && DestCell.IsEfsunInventoryPosition(                                                                                                                                                                                                                                             ))
      |         ^~
char_item.cpp:6203:9: error: expected unqualified-id before 'if'
 6203 |         if (Cell.IsEquipPosition() && DestCell.IsCicekInventoryPosition(                                                                                                                                                                                                                                             ))
      |         ^~
char_item.cpp:6211:9: error: expected unqualified-id before 'if'
 6211 |         if (Cell.IsEquipPosition() && !CanUnequipNow (item))
      |         ^~
char_item.cpp:6216:9: error: expected unqualified-id before 'if'
 6216 |         if (DestCell.IsEquipPosition())
      |         ^~
char_item.cpp:6227:9: error: expected unqualified-id before 'else'
 6227 |         else
      |         ^~~~
char_item.cpp:6319:9: error: expected unqualified-id before 'return'
 6319 |         return true;
      |         ^~~~~~
char_item.cpp:6320:1: error: expected declaration before '}' token
 6320 | }
      | ^
char_item.cpp: In member function 'bool CHARACTER::PickupItem(DWORD)':
char_item.cpp:6542:33: error: expected '}' before 'else'
 6542 |                                 else if (item->IsSkillBook())
      |                                 ^~~~
char_item.cpp:6468:25: note: to match this '{'
 6468 |                         {
      |                         ^
char_item.cpp:6542:33: error: expected '}' before 'else'
 6542 |                                 else if (item->IsSkillBook())
      |                                 ^~~~
char_item.cpp:6455:17: note: to match this '{'
 6455 |                 {
      |                 ^
char_item.cpp:6544:46: error: 'iEmptyCell' was not declared in this scope
 6544 |                                         if ((iEmptyCell = GetEmptySkillB                                                                                                                                                                                                                                             ookInventory(item->GetSize())) == -1)
      |                                              ^~~~~~~~~~
char_item.cpp:6553:46: error: 'iEmptyCell' was not declared in this scope
 6553 |                                         if ((iEmptyCell = GetEmptyUpgrad                                                                                                                                                                                                                                             eItemsInventory(item->GetSize())) == -1)
      |                                              ^~~~~~~~~~
char_item.cpp:6562:46: error: 'iEmptyCell' was not declared in this scope
 6562 |                                         if ((iEmptyCell = GetEmptyStoneI                                                                                                                                                                                                                                             nventory(item->GetSize())) == -1)
      |                                              ^~~~~~~~~~
char_item.cpp:6571:46: error: 'iEmptyCell' was not declared in this scope
 6571 |                                         if ((iEmptyCell = GetEmptyBoxInv                                                                                                                                                                                                                                             entory(item->GetSize())) == -1)
      |                                              ^~~~~~~~~~
char_item.cpp:6580:46: error: 'iEmptyCell' was not declared in this scope
 6580 |                                         if ((iEmptyCell = GetEmptyEfsunI                                                                                                                                                                                                                                             nventory(item->GetSize())) == -1)
      |                                              ^~~~~~~~~~
char_item.cpp:6589:46: error: 'iEmptyCell' was not declared in this scope
 6589 |                                         if ((iEmptyCell = GetEmptyCicekI                                                                                                                                                                                                                                             nventory(item->GetSize())) == -1)
      |                                              ^~~~~~~~~~
char_item.cpp:6602:102: error: 'iEmptyCell' was not declared in this scope
 6602 |                                         item->AddToCharacter (this, TIte                                                                                                                                                                                                                                             mPos (DRAGON_SOUL_INVENTORY, iEmptyCell));
      |                                                                                                                                                                                                                                                                                                                                                   ^~~~~~~~~~
char_item.cpp:6606:88: error: 'iEmptyCell' was not declared in this scope
 6606 |                                         item->AddToCharacter(this, TItem                                                                                                                                                                                                                                             Pos(INVENTORY, iEmptyCell));
      |                                                                                                                                                                                                                                                                                                                                     ^~~~~~~~~~
char_item.cpp:6608:88: error: 'iEmptyCell' was not declared in this scope
 6608 |                                         item->AddToCharacter(this, TItem                                                                                                                                                                                                                                             Pos(INVENTORY, iEmptyCell));
      |                                                                                                                                                                                                                                                                                                                                     ^~~~~~~~~~
char_item.cpp:6610:88: error: 'iEmptyCell' was not declared in this scope
 6610 |                                         item->AddToCharacter(this, TItem                                                                                                                                                                                                                                             Pos(INVENTORY, iEmptyCell));
      |                                                                                                                                                                                                                                                                                                                                     ^~~~~~~~~~
char_item.cpp:6612:88: error: 'iEmptyCell' was not declared in this scope
 6612 |                                         item->AddToCharacter(this, TItem                                                                                                                                                                                                                                             Pos(INVENTORY, iEmptyCell));
      |                                                                                                                                                                                                                                                                                                                                     ^~~~~~~~~~
char_item.cpp:6614:88: error: 'iEmptyCell' was not declared in this scope
 6614 |                                         item->AddToCharacter(this, TItem                                                                                                                                                                                                                                             Pos(INVENTORY, iEmptyCell));
      |                                                                                                                                                                                                                                                                                                                                     ^~~~~~~~~~
char_item.cpp:6616:88: error: 'iEmptyCell' was not declared in this scope
 6616 |                                         item->AddToCharacter(this, TItem                                                                                                                                                                                                                                             Pos(INVENTORY, iEmptyCell));
      |                                                                                                                                                                                                                                                                                                                                     ^~~~~~~~~~
char_item.cpp:6620:90: error: 'iEmptyCell' was not declared in this scope
 6620 |                                         item->AddToCharacter (this, TIte                                                                                                                                                                                                                                             mPos (INVENTORY, iEmptyCell));
      |                                                                                                                                                                                                                                                                                                                                       ^~~~~~~~~~
char_item.cpp: At global scope:
char_item.cpp:6637:17: error: expected unqualified-id before 'else'
 6637 |                 else if (!IS_SET (item->GetAntiFlag(), ITEM_ANTIFLAG_GIV                                                                                                                                                                                                                                             E | ITEM_ANTIFLAG_DROP) && GetParty())
      |                 ^~~~
char_item.cpp:6803:9: error: expected declaration before '}' token
 6803 |         }
      |         ^
char_item.cpp:6805:9: error: expected unqualified-id before 'return'
 6805 |         return false;
      |         ^~~~~~
char_item.cpp:6806:1: error: expected declaration before '}' token
 6806 | }
      | ^
char_item.cpp: In member function 'bool CHARACTER::UnequipItem(LPITEM)':
char_item.cpp:6960:9: error: 'else' without a previous 'if'
 6960 |         else if (item->IsSkillBook())
      |         ^~~~
char_item.cpp: In member function 'void CHARACTER::AutoGiveItem(LPITEM, bool)':
char_item.cpp:7644:17: error: expected '}' before 'else'
 7644 |                 else if (item->IsSkillBook())
      |                 ^~~~
char_item.cpp:7641:17: note: to match this '{'
 7641 |                 {
      |                 ^
char_item.cpp: At global scope:
char_item.cpp:7679:9: error: expected unqualified-id before 'else'
 7679 |         else
      |         ^~~~
char_item.cpp:7694:1: error: expected declaration before '}' token
 7694 | }
      | ^
char_item.cpp: In member function 'CItem* CHARACTER::AutoGiveItem(DWORD, BYTE, i                                                                                                                                                                                                                                             nt, bool)':
char_item.cpp:7800:9: error: 'else' without a previous 'if'
 7800 |         else if (item->IsSkillBook())
      |         ^~~~
char_item.cpp:7838:17: error: expected '}' before 'else'
 7838 |                 else if (item->IsSkillBook())
      |                 ^~~~
char_item.cpp:7834:17: note: to match this '{'
 7834 |                 {
      |                 ^
char_item.cpp: At global scope:
char_item.cpp:7871:9: error: expected unqualified-id before 'else'
 7871 |         else
      |         ^~~~
char_item.cpp:7889:17: error: expected constructor, destructor, or type conversi                                                                                                                                                                                                                                             on before '(' token
 7889 |         sys_log (0,
      |                 ^
char_item.cpp:7891:9: error: expected unqualified-id before 'return'
 7891 |         return item;
      |         ^~~~~~
char_item.cpp:7892:1: error: expected declaration before '}' token
 7892 | }
      | ^
compile char_state.cpp
compile PetSystem.cpp
char_item.cpp: In member function 'bool CHARACTER::MoveItem(TItemPos, TItemPos,                                                                                                                                                                                                                                              BYTE)':
char_item.cpp:6090:9: warning: control reaches end of non-void function [-Wretur                                                                                                                                                                                                                                             n-type]
 6090 |         }
      |         ^
char_item.cpp: In member function 'CItem* CHARACTER::AutoGiveItem(DWORD, BYTE, i                                                                                                                                                                                                                                             nt, bool)':
char_item.cpp:7870:9: warning: control reaches end of non-void function [-Wretur                                                                                                                                                                                                                                             n-type]
 7870 |         }
      |         ^
 
hocam bu da server sourceden

Server_source:
Genişlet Daralt Kopyala
char_item.cpp: In member function 'void CHARACTER::SetItem(TItemPos, LPITEM)':
char_item.cpp:512:33: error: expected '}' before 'else'
  512 |                                 else
      |                                 ^~~~
char_item.cpp:498:9: note: to match this '{'
  498 |         {
      |         ^
char_item.cpp:516:33: error: break statement not within loop or switch
  516 |                                 break;
      |                                 ^~~~~
char_item.cpp:517:25: error: case label 'DRAGON_SOUL_INVENTORY' not within a swi                                                                                                                                                                                                                                             tch statement
  517 |                         case DRAGON_SOUL_INVENTORY:
      |                         ^~~~
char_item.cpp:519:33: error: break statement not within loop or switch
  519 |                                 break;
      |                                 ^~~~~
char_item.cpp: At global scope:
char_item.cpp:521:9: error: expected declaration before '}' token
  521 |         }
      |         ^
char_item.cpp:522:1: error: expected declaration before '}' token
  522 | }
      | ^
char_item.cpp:593:9: error: expected unqualified-id before 'for'
  593 |         for (i = 0; i < SKILL_BOOK_INVENTORY_MAX_NUM; ++i)
      |         ^~~
char_item.cpp:593:21: error: 'i' does not name a type
  593 |         for (i = 0; i < SKILL_BOOK_INVENTORY_MAX_NUM; ++i)
      |                     ^
char_item.cpp:593:55: error: expected unqualified-id before '++' token
  593 |         for (i = 0; i < SKILL_BOOK_INVENTORY_MAX_NUM; ++i)
      |                                                       ^~
char_item.cpp:605:9: error: expected unqualified-id before 'for'
  605 |         for (i = 0; i < UPGRADE_ITEMS_INVENTORY_MAX_NUM; ++i)
      |         ^~~
char_item.cpp:605:21: error: 'i' does not name a type
  605 |         for (i = 0; i < UPGRADE_ITEMS_INVENTORY_MAX_NUM; ++i)
      |                     ^
char_item.cpp:605:58: error: expected unqualified-id before '++' token
  605 |         for (i = 0; i < UPGRADE_ITEMS_INVENTORY_MAX_NUM; ++i)
      |                                                          ^~
char_item.cpp:617:9: error: expected unqualified-id before 'for'
  617 |         for (i = 0; i < STONE_INVENTORY_MAX_NUM; ++i)
      |         ^~~
char_item.cpp:617:21: error: 'i' does not name a type
  617 |         for (i = 0; i < STONE_INVENTORY_MAX_NUM; ++i)
      |                     ^
char_item.cpp:617:50: error: expected unqualified-id before '++' token
  617 |         for (i = 0; i < STONE_INVENTORY_MAX_NUM; ++i)
      |                                                  ^~
char_item.cpp:629:9: error: expected unqualified-id before 'for'
  629 |         for (i = 0; i < BOX_INVENTORY_MAX_NUM; ++i)
      |         ^~~
char_item.cpp:629:21: error: 'i' does not name a type
  629 |         for (i = 0; i < BOX_INVENTORY_MAX_NUM; ++i)
      |                     ^
char_item.cpp:629:48: error: expected unqualified-id before '++' token
  629 |         for (i = 0; i < BOX_INVENTORY_MAX_NUM; ++i)
      |                                                ^~
char_item.cpp:641:9: error: expected unqualified-id before 'for'
  641 |         for (i = 0; i < EFSUN_INVENTORY_MAX_NUM; ++i)
      |         ^~~
char_item.cpp:641:21: error: 'i' does not name a type
  641 |         for (i = 0; i < EFSUN_INVENTORY_MAX_NUM; ++i)
      |                     ^
char_item.cpp:641:50: error: expected unqualified-id before '++' token
  641 |         for (i = 0; i < EFSUN_INVENTORY_MAX_NUM; ++i)
      |                                                  ^~
char_item.cpp:653:9: error: expected unqualified-id before 'for'
  653 |         for (i = 0; i < CICEK_INVENTORY_MAX_NUM; ++i)
      |         ^~~
char_item.cpp:653:21: error: 'i' does not name a type
  653 |         for (i = 0; i < CICEK_INVENTORY_MAX_NUM; ++i)
      |                     ^
char_item.cpp:653:50: error: expected unqualified-id before '++' token
  653 |         for (i = 0; i < CICEK_INVENTORY_MAX_NUM; ++i)
      |                                                  ^~
char_item.cpp: In member function 'bool CHARACTER::IsEmptyItemGrid(TItemPos, BYT                                                                                                                                                                                                                                             E, int) const':
char_item.cpp:694:78: warning: comparison of integer expressions of different si                                                                                                                                                                                                                                             gnedness: 'const UINT' {aka 'const unsigned int'} and 'int' [-Wsign-compare]
  694 |                                         if (m_pointsInstant.bItemGrid[bC                                                                                                                                                                                                                                             ell] == iExceptionCell)
      |                                             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~                                                                                                                                                                                                                                             ~~~~~^~~~~~~~~~~~~~~~~
char_item.cpp:734:90: warning: comparison of integer expressions of different si                                                                                                                                                                                                                                             gnedness: 'const UINT' {aka 'const unsigned int'} and 'int' [-Wsign-compare]
  734 |                                                         if (m_pointsInst                                                                                                                                                                                                                                             ant.bItemGrid[p] != iExceptionCell)
      |                                                             ~~~~~~~~~~~~                                                                                                                                                                                                                                             ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
char_item.cpp:769:90: warning: comparison of integer expressions of different si                                                                                                                                                                                                                                             gnedness: 'const UINT' {aka 'const unsigned int'} and 'int' [-Wsign-compare]
  769 |                                                         if (m_pointsInst                                                                                                                                                                                                                                             ant.bItemGrid[p] != iExceptionCell)
      |                                                             ~~~~~~~~~~~~                                                                                                                                                                                                                                             ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
char_item.cpp:804:90: warning: comparison of integer expressions of different si                                                                                                                                                                                                                                             gnedness: 'const UINT' {aka 'const unsigned int'} and 'int' [-Wsign-compare]
  804 |                                                         if (m_pointsInst                                                                                                                                                                                                                                             ant.bItemGrid[p] != iExceptionCell)
      |                                                             ~~~~~~~~~~~~                                                                                                                                                                                                                                             ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
char_item.cpp:839:90: warning: comparison of integer expressions of different si                                                                                                                                                                                                                                             gnedness: 'const UINT' {aka 'const unsigned int'} and 'int' [-Wsign-compare]
  839 |                                                         if (m_pointsInst                                                                                                                                                                                                                                             ant.bItemGrid[p] != iExceptionCell)
      |                                                             ~~~~~~~~~~~~                                                                                                                                                                                                                                             ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
char_item.cpp:874:90: warning: comparison of integer expressions of different si                                                                                                                                                                                                                                             gnedness: 'const UINT' {aka 'const unsigned int'} and 'int' [-Wsign-compare]
  874 |                                                         if (m_pointsInst                                                                                                                                                                                                                                             ant.bItemGrid[p] != iExceptionCell)
      |                                                             ~~~~~~~~~~~~                                                                                                                                                                                                                                             ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
char_item.cpp:909:90: warning: comparison of integer expressions of different si                                                                                                                                                                                                                                             gnedness: 'const UINT' {aka 'const unsigned int'} and 'int' [-Wsign-compare]
  909 |                                                         if (m_pointsInst                                                                                                                                                                                                                                             ant.bItemGrid[p] != iExceptionCell)
      |                                                             ~~~~~~~~~~~~                                                                                                                                                                                                                                             ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
char_item.cpp:927:70: warning: comparison of integer expressions of different si                                                                                                                                                                                                                                             gnedness: 'const UINT' {aka 'const unsigned int'} and 'int' [-Wsign-compare]
  927 |                                 if (m_pointsInstant.bItemGrid[bCell] ==                                                                                                                                                                                                                                              iExceptionCell)
      |                                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~                                                                                                                                                                                                                                             ~~~~~~~~~~~~~~
char_item.cpp:952:90: warning: comparison of integer expressions of different si                                                                                                                                                                                                                                             gnedness: 'const UINT' {aka 'const unsigned int'} and 'int' [-Wsign-compare]
  952 |                                                         if (m_pointsInst                                                                                                                                                                                                                                             ant.bItemGrid[p] != iExceptionCell)
      |                                                             ~~~~~~~~~~~~                                                                                                                                                                                                                                             ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
char_item.cpp:992:82: warning: comparison of integer expressions of different si                                                                                                                                                                                                                                             gnedness: 'const UINT' {aka 'const unsigned int'} and 'int' [-Wsign-compare]
  992 |                                                 if (m_pointsInstant.bIte                                                                                                                                                                                                                                             mGrid[p] != iExceptionCell)
      |                                                     ~~~~~~~~~~~~~~~~~~~~                                                                                                                                                                                                                                             ~~~~~~~~~^~~~~~~~~~~~~~~~~
char_item.cpp: At global scope:
char_item.cpp:6092:9: error: expected unqualified-id before 'if'
 6092 |         if (true == item->isLocked())
      |         ^~
char_item.cpp:6097:9: error: expected unqualified-id before 'if'
 6097 |         if (!IsValidItemPosition (DestCell))
      |         ^~
char_item.cpp:6102:9: error: expected unqualified-id before 'if'
 6102 |         if (!CanHandleItem())
      |         ^~
char_item.cpp:6112:9: error: expected unqualified-id before 'if'
 6112 |         if (DestCell.IsBeltInventoryPosition() && false == CBeltInventor                                                                                                                                                                                                                                             yHelper::CanMoveIntoBeltInventory (item))
      |         ^~
char_item.cpp:6118:9: error: expected unqualified-id before 'if'
 6118 |         if (Cell.IsSkillBookInventoryPosition() && !DestCell.IsSkillBook                                                                                                                                                                                                                                             InventoryPosition())
      |         ^~
char_item.cpp:6123:9: error: expected unqualified-id before 'if'
 6123 |         if (Cell.IsUpgradeItemsInventoryPosition() && !DestCell.IsUpgrad                                                                                                                                                                                                                                             eItemsInventoryPosition())
      |         ^~
char_item.cpp:6128:9: error: expected unqualified-id before 'if'
 6128 |         if (Cell.IsStoneInventoryPosition() && !DestCell.IsStoneInventor                                                                                                                                                                                                                                             yPosition())
      |         ^~
char_item.cpp:6133:9: error: expected unqualified-id before 'if'
 6133 |         if (Cell.IsBoxInventoryPosition() && !DestCell.IsBoxInventoryPos                                                                                                                                                                                                                                             ition())
      |         ^~
char_item.cpp:6138:9: error: expected unqualified-id before 'if'
 6138 |         if (Cell.IsEfsunInventoryPosition() && !DestCell.IsEfsunInventor                                                                                                                                                                                                                                             yPosition())
      |         ^~
char_item.cpp:6143:9: error: expected unqualified-id before 'if'
 6143 |         if (Cell.IsCicekInventoryPosition() && !DestCell.IsCicekInventor                                                                                                                                                                                                                                             yPosition())
      |         ^~
char_item.cpp:6148:9: error: expected unqualified-id before 'if'
 6148 |         if (Cell.IsDefaultInventoryPosition() && DestCell.IsSkillBookInv                                                                                                                                                                                                                                             entoryPosition())
      |         ^~
char_item.cpp:6153:9: error: expected unqualified-id before 'if'
 6153 |         if (Cell.IsDefaultInventoryPosition() && DestCell.IsUpgradeItems                                                                                                                                                                                                                                             InventoryPosition())
      |         ^~
char_item.cpp:6158:9: error: expected unqualified-id before 'if'
 6158 |         if (Cell.IsDefaultInventoryPosition() && DestCell.IsStoneInvento                                                                                                                                                                                                                                             ryPosition())
      |         ^~
char_item.cpp:6163:9: error: expected unqualified-id before 'if'
 6163 |         if (Cell.IsDefaultInventoryPosition() && DestCell.IsBoxInventory                                                                                                                                                                                                                                             Position())
      |         ^~
char_item.cpp:6168:9: error: expected unqualified-id before 'if'
 6168 |         if (Cell.IsDefaultInventoryPosition() && DestCell.IsEfsunInvento                                                                                                                                                                                                                                             ryPosition())
      |         ^~
char_item.cpp:6173:9: error: expected unqualified-id before 'if'
 6173 |         if (Cell.IsDefaultInventoryPosition() && DestCell.IsCicekInvento                                                                                                                                                                                                                                             ryPosition())
      |         ^~
char_item.cpp:6178:9: error: expected unqualified-id before 'if'
 6178 |         if (Cell.IsEquipPosition() && DestCell.IsSkillBookInventoryPosit                                                                                                                                                                                                                                             ion())
      |         ^~
char_item.cpp:6183:9: error: expected unqualified-id before 'if'
 6183 |         if (Cell.IsEquipPosition() && DestCell.IsUpgradeItemsInventoryPo                                                                                                                                                                                                                                             sition())
      |         ^~
char_item.cpp:6188:9: error: expected unqualified-id before 'if'
 6188 |         if (Cell.IsEquipPosition() && DestCell.IsStoneInventoryPosition(                                                                                                                                                                                                                                             ))
      |         ^~
char_item.cpp:6193:9: error: expected unqualified-id before 'if'
 6193 |         if (Cell.IsEquipPosition() && DestCell.IsBoxInventoryPosition())
      |         ^~
char_item.cpp:6198:9: error: expected unqualified-id before 'if'
 6198 |         if (Cell.IsEquipPosition() && DestCell.IsEfsunInventoryPosition(                                                                                                                                                                                                                                             ))
      |         ^~
char_item.cpp:6203:9: error: expected unqualified-id before 'if'
 6203 |         if (Cell.IsEquipPosition() && DestCell.IsCicekInventoryPosition(                                                                                                                                                                                                                                             ))
      |         ^~
char_item.cpp:6211:9: error: expected unqualified-id before 'if'
 6211 |         if (Cell.IsEquipPosition() && !CanUnequipNow (item))
      |         ^~
char_item.cpp:6216:9: error: expected unqualified-id before 'if'
 6216 |         if (DestCell.IsEquipPosition())
      |         ^~
char_item.cpp:6227:9: error: expected unqualified-id before 'else'
 6227 |         else
      |         ^~~~
char_item.cpp:6319:9: error: expected unqualified-id before 'return'
 6319 |         return true;
      |         ^~~~~~
char_item.cpp:6320:1: error: expected declaration before '}' token
 6320 | }
      | ^
char_item.cpp: In member function 'bool CHARACTER::PickupItem(DWORD)':
char_item.cpp:6542:33: error: expected '}' before 'else'
 6542 |                                 else if (item->IsSkillBook())
      |                                 ^~~~
char_item.cpp:6468:25: note: to match this '{'
 6468 |                         {
      |                         ^
char_item.cpp:6542:33: error: expected '}' before 'else'
 6542 |                                 else if (item->IsSkillBook())
      |                                 ^~~~
char_item.cpp:6455:17: note: to match this '{'
 6455 |                 {
      |                 ^
char_item.cpp:6544:46: error: 'iEmptyCell' was not declared in this scope
 6544 |                                         if ((iEmptyCell = GetEmptySkillB                                                                                                                                                                                                                                             ookInventory(item->GetSize())) == -1)
      |                                              ^~~~~~~~~~
char_item.cpp:6553:46: error: 'iEmptyCell' was not declared in this scope
 6553 |                                         if ((iEmptyCell = GetEmptyUpgrad                                                                                                                                                                                                                                             eItemsInventory(item->GetSize())) == -1)
      |                                              ^~~~~~~~~~
char_item.cpp:6562:46: error: 'iEmptyCell' was not declared in this scope
 6562 |                                         if ((iEmptyCell = GetEmptyStoneI                                                                                                                                                                                                                                             nventory(item->GetSize())) == -1)
      |                                              ^~~~~~~~~~
char_item.cpp:6571:46: error: 'iEmptyCell' was not declared in this scope
 6571 |                                         if ((iEmptyCell = GetEmptyBoxInv                                                                                                                                                                                                                                             entory(item->GetSize())) == -1)
      |                                              ^~~~~~~~~~
char_item.cpp:6580:46: error: 'iEmptyCell' was not declared in this scope
 6580 |                                         if ((iEmptyCell = GetEmptyEfsunI                                                                                                                                                                                                                                             nventory(item->GetSize())) == -1)
      |                                              ^~~~~~~~~~
char_item.cpp:6589:46: error: 'iEmptyCell' was not declared in this scope
 6589 |                                         if ((iEmptyCell = GetEmptyCicekI                                                                                                                                                                                                                                             nventory(item->GetSize())) == -1)
      |                                              ^~~~~~~~~~
char_item.cpp:6602:102: error: 'iEmptyCell' was not declared in this scope
 6602 |                                         item->AddToCharacter (this, TIte                                                                                                                                                                                                                                             mPos (DRAGON_SOUL_INVENTORY, iEmptyCell));
      |                                                                                                                                                                                                                                                                                                                                                   ^~~~~~~~~~
char_item.cpp:6606:88: error: 'iEmptyCell' was not declared in this scope
 6606 |                                         item->AddToCharacter(this, TItem                                                                                                                                                                                                                                             Pos(INVENTORY, iEmptyCell));
      |                                                                                                                                                                                                                                                                                                                                     ^~~~~~~~~~
char_item.cpp:6608:88: error: 'iEmptyCell' was not declared in this scope
 6608 |                                         item->AddToCharacter(this, TItem                                                                                                                                                                                                                                             Pos(INVENTORY, iEmptyCell));
      |                                                                                                                                                                                                                                                                                                                                     ^~~~~~~~~~
char_item.cpp:6610:88: error: 'iEmptyCell' was not declared in this scope
 6610 |                                         item->AddToCharacter(this, TItem                                                                                                                                                                                                                                             Pos(INVENTORY, iEmptyCell));
      |                                                                                                                                                                                                                                                                                                                                     ^~~~~~~~~~
char_item.cpp:6612:88: error: 'iEmptyCell' was not declared in this scope
 6612 |                                         item->AddToCharacter(this, TItem                                                                                                                                                                                                                                             Pos(INVENTORY, iEmptyCell));
      |                                                                                                                                                                                                                                                                                                                                     ^~~~~~~~~~
char_item.cpp:6614:88: error: 'iEmptyCell' was not declared in this scope
 6614 |                                         item->AddToCharacter(this, TItem                                                                                                                                                                                                                                             Pos(INVENTORY, iEmptyCell));
      |                                                                                                                                                                                                                                                                                                                                     ^~~~~~~~~~
char_item.cpp:6616:88: error: 'iEmptyCell' was not declared in this scope
 6616 |                                         item->AddToCharacter(this, TItem                                                                                                                                                                                                                                             Pos(INVENTORY, iEmptyCell));
      |                                                                                                                                                                                                                                                                                                                                     ^~~~~~~~~~
char_item.cpp:6620:90: error: 'iEmptyCell' was not declared in this scope
 6620 |                                         item->AddToCharacter (this, TIte                                                                                                                                                                                                                                             mPos (INVENTORY, iEmptyCell));
      |                                                                                                                                                                                                                                                                                                                                       ^~~~~~~~~~
char_item.cpp: At global scope:
char_item.cpp:6637:17: error: expected unqualified-id before 'else'
 6637 |                 else if (!IS_SET (item->GetAntiFlag(), ITEM_ANTIFLAG_GIV                                                                                                                                                                                                                                             E | ITEM_ANTIFLAG_DROP) && GetParty())
      |                 ^~~~
char_item.cpp:6803:9: error: expected declaration before '}' token
 6803 |         }
      |         ^
char_item.cpp:6805:9: error: expected unqualified-id before 'return'
 6805 |         return false;
      |         ^~~~~~
char_item.cpp:6806:1: error: expected declaration before '}' token
 6806 | }
      | ^
char_item.cpp: In member function 'bool CHARACTER::UnequipItem(LPITEM)':
char_item.cpp:6960:9: error: 'else' without a previous 'if'
 6960 |         else if (item->IsSkillBook())
      |         ^~~~
char_item.cpp: In member function 'void CHARACTER::AutoGiveItem(LPITEM, bool)':
char_item.cpp:7644:17: error: expected '}' before 'else'
 7644 |                 else if (item->IsSkillBook())
      |                 ^~~~
char_item.cpp:7641:17: note: to match this '{'
 7641 |                 {
      |                 ^
char_item.cpp: At global scope:
char_item.cpp:7679:9: error: expected unqualified-id before 'else'
 7679 |         else
      |         ^~~~
char_item.cpp:7694:1: error: expected declaration before '}' token
 7694 | }
      | ^
char_item.cpp: In member function 'CItem* CHARACTER::AutoGiveItem(DWORD, BYTE, i                                                                                                                                                                                                                                             nt, bool)':
char_item.cpp:7800:9: error: 'else' without a previous 'if'
 7800 |         else if (item->IsSkillBook())
      |         ^~~~
char_item.cpp:7838:17: error: expected '}' before 'else'
 7838 |                 else if (item->IsSkillBook())
      |                 ^~~~
char_item.cpp:7834:17: note: to match this '{'
 7834 |                 {
      |                 ^
char_item.cpp: At global scope:
char_item.cpp:7871:9: error: expected unqualified-id before 'else'
 7871 |         else
      |         ^~~~
char_item.cpp:7889:17: error: expected constructor, destructor, or type conversi                                                                                                                                                                                                                                             on before '(' token
 7889 |         sys_log (0,
      |                 ^
char_item.cpp:7891:9: error: expected unqualified-id before 'return'
 7891 |         return item;
      |         ^~~~~~
char_item.cpp:7892:1: error: expected declaration before '}' token
 7892 | }
      | ^
compile char_state.cpp
compile PetSystem.cpp
char_item.cpp: In member function 'bool CHARACTER::MoveItem(TItemPos, TItemPos,                                                                                                                                                                                                                                              BYTE)':
char_item.cpp:6090:9: warning: control reaches end of non-void function [-Wretur                                                                                                                                                                                                                                             n-type]
 6090 |         }
      |         ^
char_item.cpp: In member function 'CItem* CHARACTER::AutoGiveItem(DWORD, BYTE, i                                                                                                                                                                                                                                             nt, bool)':
char_item.cpp:7870:9: warning: control reaches end of non-void function [-Wretur                                                                                                                                                                                                                                             n-type]
 7870 |         }
      |         ^
discord _cano81 ulaşın yardımcı olayım
 
Geri
Üst