Çözüldü K envanter sisteminde error ve warning hatası

  • Konuyu açan Konuyu açan Archive
  • Açılış Tarihi Açılış Tarihi
  • Yanıt Yanıt 6
  • Gösterim Gösterim 60
Bu konu çözüme ulaştırılmıştır. Çözüm için konuya yazılan tüm yorumları okumayı unutmayın. Eğer konudaki yorumlar sorununuzu çözmediyse yeni bir konu açabilirsiniz.
Durum
İçerik kilitlendiği için mesaj gönderimine kapatıldı.

Archive

Üye
Üye
Mesaj
164
Çözümler
1
Beğeni
42
Puan
479
Ticaret Puanı
0
char_item.cpp:
Genişlet Daralt Kopyala
char_item.cpp:594:1: error: expected unqualified-id before '{' token
  594 | {
      | ^
char_item.cpp:607:1: error: expected unqualified-id before '{' token
  607 | {
      | ^
char_item.cpp:620:1: error: expected unqualified-id before '{' token
  620 | {
      | ^
char_item.cpp:633:1: error: expected unqualified-id before '{' token
  633 | {
      | ^
char_item.cpp:646:1: error: expected unqualified-id before '{' token
  646 | {
      | ^
char_item.cpp:659:1: error: expected unqualified-id before '{' token
  659 | {
      | ^
char_item.cpp: In member function 'bool CHARACTER::IsEmptyItemGrid(TItemPos, BYTE, int) const':
char_item.cpp:702:78: warning: comparison of integer expressions of different signedness: 'const UINT' {aka 'const unsigned int'} and 'int' [-Wsign-compare]
  702 |                                         if (m_pointsInstant.bItemGrid[bCell] == iExceptionCell)
      |                                             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
char_item.cpp:742:90: warning: comparison of integer expressions of different signedness: 'const UINT' {aka 'const unsigned int'} and 'int' [-Wsign-compare]
  742 |                                                         if (m_pointsInstant.bItemGrid[p] != iExceptionCell)
      |                                                             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
char_item.cpp:777:90: warning: comparison of integer expressions of different signedness: 'const UINT' {aka 'const unsigned int'} and 'int' [-Wsign-compare]
  777 |                                                         if (m_pointsInstant.bItemGrid[p] != iExceptionCell)
      |                                                             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
char_item.cpp:812:90: warning: comparison of integer expressions of different signedness: 'const UINT' {aka 'const unsigned int'} and 'int' [-Wsign-compare]
  812 |                                                         if (m_pointsInstant.bItemGrid[p] != iExceptionCell)
      |                                                             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
char_item.cpp:847:90: warning: comparison of integer expressions of different signedness: 'const UINT' {aka 'const unsigned int'} and 'int' [-Wsign-compare]
  847 |                                                         if (m_pointsInstant.bItemGrid[p] != iExceptionCell)
      |                                                             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
char_item.cpp:882:90: warning: comparison of integer expressions of different signedness: 'const UINT' {aka 'const unsigned int'} and 'int' [-Wsign-compare]
  882 |                                                         if (m_pointsInstant.bItemGrid[p] != iExceptionCell)
      |                                                             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
char_item.cpp:917:90: warning: comparison of integer expressions of different signedness: 'const UINT' {aka 'const unsigned int'} and 'int' [-Wsign-compare]
  917 |                                                         if (m_pointsInstant.bItemGrid[p] != iExceptionCell)
      |                                                             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
char_item.cpp:934:70: warning: comparison of integer expressions of different signedness: 'const UINT' {aka 'const unsigned int'} and 'int' [-Wsign-compare]
  934 |                                 if (m_pointsInstant.bItemGrid[bCell] == iExceptionCell)
      |                                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
char_item.cpp:959:90: warning: comparison of integer expressions of different signedness: 'const UINT' {aka 'const unsigned int'} and 'int' [-Wsign-compare]
  959 |                                                         if (m_pointsInstant.bItemGrid[p] != iExceptionCell)
      |                                                             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
char_item.cpp:999:82: warning: comparison of integer expressions of different signedness: 'const UINT' {aka 'const unsigned int'} and 'int' [-Wsign-compare]
  999 |                                                 if (m_pointsInstant.bItemGrid[p] != iExceptionCell)
      |                                                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
 
chat_item.cpp hata veren kod satırı burası:
Genişlet Daralt Kopyala
#ifdef ENABLE_SPLIT_INVENTORY_SYSTEM
    for (i = 0; i < SKILL_BOOK_INVENTORY_MAX_NUM; ++i)
    {
        if ((item = GetItem(TItemPos(SKILL_BOOK_INVENTORY, i))))
        {
            item->SetSkipSave(true);
            ITEM_MANAGER::instance().FlushDelayedSave(item);

            item->RemoveFromCharacter();
            M2_DESTROY_ITEM(item);
        }
    }
}  
    for (i = 0; i < UPGRADE_ITEMS_INVENTORY_MAX_NUM; ++i)
    {
        if ((item = GetItem(TItemPos(UPGRADE_ITEMS_INVENTORY, i))))
        {
            item->SetSkipSave(true);
            ITEM_MANAGER::instance().FlushDelayedSave(item);

            item->RemoveFromCharacter();
            M2_DESTROY_ITEM(item);
        }
    }
}  
    for (i = 0; i < STONE_INVENTORY_MAX_NUM; ++i)
    {
        if ((item = GetItem(TItemPos(STONE_INVENTORY, i))))
        {
            item->SetSkipSave(true);
            ITEM_MANAGER::instance().FlushDelayedSave(item);

            item->RemoveFromCharacter();
            M2_DESTROY_ITEM(item);
        }
    }
}
    for (i = 0; i < BOX_INVENTORY_MAX_NUM; ++i)
    {
        if ((item = GetItem(TItemPos(BOX_INVENTORY, i))))
        {
            item->SetSkipSave(true);
            ITEM_MANAGER::instance().FlushDelayedSave(item);

            item->RemoveFromCharacter();
            M2_DESTROY_ITEM(item);
        }
    }
}  
    for (i = 0; i < EFSUN_INVENTORY_MAX_NUM; ++i)
    {
        if ((item = GetItem(TItemPos(EFSUN_INVENTORY, i))))
        {
            item->SetSkipSave(true);
            ITEM_MANAGER::instance().FlushDelayedSave(item);

            item->RemoveFromCharacter();
            M2_DESTROY_ITEM(item);
        }
    }
}  
    for (i = 0; i < CICEK_INVENTORY_MAX_NUM; ++i)
    {
        if ((item = GetItem(TItemPos(CICEK_INVENTORY, i))))
        {
            item->SetSkipSave(true);
            ITEM_MANAGER::instance().FlushDelayedSave(item);

            item->RemoveFromCharacter();
            M2_DESTROY_ITEM(item);
        }
    }
}
#endif

@Whistle @Kaptan Yosun @hasanmacit bi yardımcı olurmusunuz teşekkür ederim
 
her for döngüsünün en sonunda } prantezi fazla 1 tane anormal duruyo zaten onları sil tekrar dene
 
Çözüm
her for döngüsünün en sonunda } prantezi fazla 1 tane anormal duruyo zaten onları sil tekrar dene
char_item.cpp:
Genişlet Daralt Kopyala
char_item.cpp:594:9: error: expected unqualified-id before 'for'
  594 |         for (i = 0; i < SKILL_BOOK_INVENTORY_MAX_NUM; ++i)
      |         ^~~
char_item.cpp:594:21: error: 'i' does not name a type
  594 |         for (i = 0; i < SKILL_BOOK_INVENTORY_MAX_NUM; ++i)
      |                     ^
char_item.cpp:594:55: error: expected unqualified-id before '++' token
  594 |         for (i = 0; i < SKILL_BOOK_INVENTORY_MAX_NUM; ++i)
      |                                                       ^~
char_item.cpp:606:9: error: expected unqualified-id before 'for'
  606 |         for (i = 0; i < UPGRADE_ITEMS_INVENTORY_MAX_NUM; ++i)
      |         ^~~
char_item.cpp:606:21: error: 'i' does not name a type
  606 |         for (i = 0; i < UPGRADE_ITEMS_INVENTORY_MAX_NUM; ++i)
      |                     ^
char_item.cpp:606:58: error: expected unqualified-id before '++' token
  606 |         for (i = 0; i < UPGRADE_ITEMS_INVENTORY_MAX_NUM; ++i)
      |                                                          ^~
char_item.cpp:618:9: error: expected unqualified-id before 'for'
  618 |         for (i = 0; i < STONE_INVENTORY_MAX_NUM; ++i)
      |         ^~~
char_item.cpp:618:21: error: 'i' does not name a type
  618 |         for (i = 0; i < STONE_INVENTORY_MAX_NUM; ++i)
      |                     ^
char_item.cpp:618:50: error: expected unqualified-id before '++' token
  618 |         for (i = 0; i < STONE_INVENTORY_MAX_NUM; ++i)
      |                                                  ^~
char_item.cpp:630:9: error: expected unqualified-id before 'for'
  630 |         for (i = 0; i < BOX_INVENTORY_MAX_NUM; ++i)
      |         ^~~
char_item.cpp:630:21: error: 'i' does not name a type
  630 |         for (i = 0; i < BOX_INVENTORY_MAX_NUM; ++i)
      |                     ^
char_item.cpp:630:48: error: expected unqualified-id before '++' token
  630 |         for (i = 0; i < BOX_INVENTORY_MAX_NUM; ++i)
      |                                                ^~
char_item.cpp:642:9: error: expected unqualified-id before 'for'
  642 |         for (i = 0; i < EFSUN_INVENTORY_MAX_NUM; ++i)
      |         ^~~
char_item.cpp:642:21: error: 'i' does not name a type
  642 |         for (i = 0; i < EFSUN_INVENTORY_MAX_NUM; ++i)
      |                     ^
char_item.cpp:642:50: error: expected unqualified-id before '++' token
  642 |         for (i = 0; i < EFSUN_INVENTORY_MAX_NUM; ++i)
      |                                                  ^~
char_item.cpp:654:9: error: expected unqualified-id before 'for'
  654 |         for (i = 0; i < CICEK_INVENTORY_MAX_NUM; ++i)
      |         ^~~
char_item.cpp:654:21: error: 'i' does not name a type
  654 |         for (i = 0; i < CICEK_INVENTORY_MAX_NUM; ++i)
      |                     ^
char_item.cpp:654:50: error: expected unqualified-id before '++' token
  654 |         for (i = 0; i < CICEK_INVENTORY_MAX_NUM; ++i)
      |                                                  ^~
char_item.cpp: In member function 'bool CHARACTER::IsEmptyItemGrid(TItemPos, BYTE, int) const':
char_item.cpp:696:78: warning: comparison of integer expressions of different signedness: 'const UINT' {aka 'const unsigned int'} and 'int' [-Wsign-compare]
  696 |                                         if (m_pointsInstant.bItemGrid[bCell] == iExceptionCell)
      |                                             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
char_item.cpp:736:90: warning: comparison of integer expressions of different signedness: 'const UINT' {aka 'const unsigned int'} and 'int' [-Wsign-compare]
  736 |                                                         if (m_pointsInstant.bItemGrid[p] != iExceptionCell)
      |                                                             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
char_item.cpp:771:90: warning: comparison of integer expressions of different signedness: 'const UINT' {aka 'const unsigned int'} and 'int' [-Wsign-compare]
  771 |                                                         if (m_pointsInstant.bItemGrid[p] != iExceptionCell)
      |                                                             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
char_item.cpp:806:90: warning: comparison of integer expressions of different signedness: 'const UINT' {aka 'const unsigned int'} and 'int' [-Wsign-compare]
  806 |                                                         if (m_pointsInstant.bItemGrid[p] != iExceptionCell)
      |                                                             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
char_item.cpp:841:90: warning: comparison of integer expressions of different signedness: 'const UINT' {aka 'const unsigned int'} and 'int' [-Wsign-compare]
  841 |                                                         if (m_pointsInstant.bItemGrid[p] != iExceptionCell)
      |                                                             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
char_item.cpp:876:90: warning: comparison of integer expressions of different signedness: 'const UINT' {aka 'const unsigned int'} and 'int' [-Wsign-compare]
  876 |                                                         if (m_pointsInstant.bItemGrid[p] != iExceptionCell)
      |                                                             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
char_item.cpp:911:90: warning: comparison of integer expressions of different signedness: 'const UINT' {aka 'const unsigned int'} and 'int' [-Wsign-compare]
  911 |                                                         if (m_pointsInstant.bItemGrid[p] != iExceptionCell)
      |                                                             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
char_item.cpp:928:70: warning: comparison of integer expressions of different signedness: 'const UINT' {aka 'const unsigned int'} and 'int' [-Wsign-compare]
  928 |                                 if (m_pointsInstant.bItemGrid[bCell] == iExceptionCell)
      |                                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
char_item.cpp:953:90: warning: comparison of integer expressions of different signedness: 'const UINT' {aka 'const unsigned int'} and 'int' [-Wsign-compare]
  953 |                                                         if (m_pointsInstant.bItemGrid[p] != iExceptionCell)
      |                                                             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
char_item.cpp:993:82: warning: comparison of integer expressions of different signedness: 'const UINT' {aka 'const unsigned int'} and 'int' [-Wsign-compare]
  993 |                                                 if (m_pointsInstant.bItemGrid[p] != iExceptionCell)
      |                                                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~

hocam şimdide böyle bi hata aldım
 
hatasayısını warning kadar indirdim:
Genişlet Daralt Kopyala
char_item.cpp: In member function 'bool CHARACTER::IsEmptyItemGrid(TItemPos, BYTE, int) const':
char_item.cpp:697:78: warning: comparison of integer expressions of different signedness: 'const UINT' {aka 'const unsigned int'} and 'int' [-Wsign-compare]
  697 |                                         if (m_pointsInstant.bItemGrid[bCell] == iExceptionCell)
      |                                             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
char_item.cpp:737:90: warning: comparison of integer expressions of different signedness: 'const UINT' {aka 'const unsigned int'} and 'int' [-Wsign-compare]
  737 |                                                         if (m_pointsInstant.bItemGrid[p] != iExceptionCell)
      |                                                             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
char_item.cpp:772:90: warning: comparison of integer expressions of different signedness: 'const UINT' {aka 'const unsigned int'} and 'int' [-Wsign-compare]
  772 |                                                         if (m_pointsInstant.bItemGrid[p] != iExceptionCell)
      |                                                             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
char_item.cpp:807:90: warning: comparison of integer expressions of different signedness: 'const UINT' {aka 'const unsigned int'} and 'int' [-Wsign-compare]
  807 |                                                         if (m_pointsInstant.bItemGrid[p] != iExceptionCell)
      |                                                             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
char_item.cpp:842:90: warning: comparison of integer expressions of different signedness: 'const UINT' {aka 'const unsigned int'} and 'int' [-Wsign-compare]
  842 |                                                         if (m_pointsInstant.bItemGrid[p] != iExceptionCell)
      |                                                             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
char_item.cpp:877:90: warning: comparison of integer expressions of different signedness: 'const UINT' {aka 'const unsigned int'} and 'int' [-Wsign-compare]
  877 |                                                         if (m_pointsInstant.bItemGrid[p] != iExceptionCell)
      |                                                             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
char_item.cpp:912:90: warning: comparison of integer expressions of different signedness: 'const UINT' {aka 'const unsigned int'} and 'int' [-Wsign-compare]
  912 |                                                         if (m_pointsInstant.bItemGrid[p] != iExceptionCell)
      |                                                             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
char_item.cpp:929:70: warning: comparison of integer expressions of different signedness: 'const UINT' {aka 'const unsigned int'} and 'int' [-Wsign-compare]
  929 |                                 if (m_pointsInstant.bItemGrid[bCell] == iExceptionCell)
      |                                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
char_item.cpp:954:90: warning: comparison of integer expressions of different signedness: 'const UINT' {aka 'const unsigned int'} and 'int' [-Wsign-compare]
  954 |                                                         if (m_pointsInstant.bItemGrid[p] != iExceptionCell)
      |                                                             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
char_item.cpp:994:82: warning: comparison of integer expressions of different signedness: 'const UINT' {aka 'const unsigned int'} and 'int' [-Wsign-compare]
  994 |                                                 if (m_pointsInstant.bItemGrid[p] != iExceptionCell)
      |                                                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
 
hatasayısını warning kadar indirdim:
Genişlet Daralt Kopyala
char_item.cpp: In member function 'bool CHARACTER::IsEmptyItemGrid(TItemPos, BYTE, int) const':
char_item.cpp:697:78: warning: comparison of integer expressions of different signedness: 'const UINT' {aka 'const unsigned int'} and 'int' [-Wsign-compare]
  697 |                                         if (m_pointsInstant.bItemGrid[bCell] == iExceptionCell)
      |                                             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
char_item.cpp:737:90: warning: comparison of integer expressions of different signedness: 'const UINT' {aka 'const unsigned int'} and 'int' [-Wsign-compare]
  737 |                                                         if (m_pointsInstant.bItemGrid[p] != iExceptionCell)
      |                                                             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
char_item.cpp:772:90: warning: comparison of integer expressions of different signedness: 'const UINT' {aka 'const unsigned int'} and 'int' [-Wsign-compare]
  772 |                                                         if (m_pointsInstant.bItemGrid[p] != iExceptionCell)
      |                                                             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
char_item.cpp:807:90: warning: comparison of integer expressions of different signedness: 'const UINT' {aka 'const unsigned int'} and 'int' [-Wsign-compare]
  807 |                                                         if (m_pointsInstant.bItemGrid[p] != iExceptionCell)
      |                                                             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
char_item.cpp:842:90: warning: comparison of integer expressions of different signedness: 'const UINT' {aka 'const unsigned int'} and 'int' [-Wsign-compare]
  842 |                                                         if (m_pointsInstant.bItemGrid[p] != iExceptionCell)
      |                                                             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
char_item.cpp:877:90: warning: comparison of integer expressions of different signedness: 'const UINT' {aka 'const unsigned int'} and 'int' [-Wsign-compare]
  877 |                                                         if (m_pointsInstant.bItemGrid[p] != iExceptionCell)
      |                                                             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
char_item.cpp:912:90: warning: comparison of integer expressions of different signedness: 'const UINT' {aka 'const unsigned int'} and 'int' [-Wsign-compare]
  912 |                                                         if (m_pointsInstant.bItemGrid[p] != iExceptionCell)
      |                                                             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
char_item.cpp:929:70: warning: comparison of integer expressions of different signedness: 'const UINT' {aka 'const unsigned int'} and 'int' [-Wsign-compare]
  929 |                                 if (m_pointsInstant.bItemGrid[bCell] == iExceptionCell)
      |                                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
char_item.cpp:954:90: warning: comparison of integer expressions of different signedness: 'const UINT' {aka 'const unsigned int'} and 'int' [-Wsign-compare]
  954 |                                                         if (m_pointsInstant.bItemGrid[p] != iExceptionCell)
      |                                                             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
char_item.cpp:994:82: warning: comparison of integer expressions of different signedness: 'const UINT' {aka 'const unsigned int'} and 'int' [-Wsign-compare]
  994 |                                                 if (m_pointsInstant.bItemGrid[p] != iExceptionCell)
      |                                                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
warningde tıkandım ama @hasanmacit
 
Durum
İçerik kilitlendiği için mesaj gönderimine kapatıldı.
Geri
Üst