Bvural41 1
Bvural41
Mt2Hizmet 1
Mt2Hizmet
xranzei 1
xranzei
quickxd 1
quickxd
Hikaye Ekle

Cevaplanmadı K Envanter Eklerken Hata

  • Konuyu başlatan Konuyu başlatan ozanelif3112
  • Başlangıç tarihi Başlangıç tarihi
  • Cevaplar Cevaplar 3
  • Görüntüleme Görüntüleme 296

HERAKLES Otomatik Avlı kalıcı sunucu. 19 Haziran'da açılıyor. Atius & Wizard güvencesiyle hemen kayıt ol, ön kayıt ödülleri aktif. HEMEN TIKLA!

K Envanter sistemini eklerken game src de böyle bir hata alıyorum nerede yanlış yaptım acaba ?

char_item.cpp:589:2: error: expected unqualified-id before 'for'
for (i = 0; i < SKILL_BOOK_INVENTORY_MAX_NUM; ++i)
^~~
char_item.cpp:589:14: error: 'i' does not name a type
for (i = 0; i < SKILL_BOOK_INVENTORY_MAX_NUM; ++i)
^
char_item.cpp:589:48: error: expected unqualified-id before '++' token
for (i = 0; i < SKILL_BOOK_INVENTORY_MAX_NUM; ++i)
^~
char_item.cpp:601:2: error: expected unqualified-id before 'for'
for (i = 0; i < UPGRADE_ITEMS_INVENTORY_MAX_NUM; ++i)
^~~
char_item.cpp:601:14: error: 'i' does not name a type
for (i = 0; i < UPGRADE_ITEMS_INVENTORY_MAX_NUM; ++i)
^
char_item.cpp:601:51: error: expected unqualified-id before '++' token
for (i = 0; i < UPGRADE_ITEMS_INVENTORY_MAX_NUM; ++i)
^~
char_item.cpp:613:2: error: expected unqualified-id before 'for'
for (i = 0; i < STONE_INVENTORY_MAX_NUM; ++i)
^~~
char_item.cpp:613:14: error: 'i' does not name a type
for (i = 0; i < STONE_INVENTORY_MAX_NUM; ++i)
^
char_item.cpp:613:43: error: expected unqualified-id before '++' token
for (i = 0; i < STONE_INVENTORY_MAX_NUM; ++i)
^~
char_item.cpp:625:2: error: expected unqualified-id before 'for'
for (i = 0; i < BOX_INVENTORY_MAX_NUM; ++i)
^~~
char_item.cpp:625:14: error: 'i' does not name a type
for (i = 0; i < BOX_INVENTORY_MAX_NUM; ++i)
^
char_item.cpp:625:41: error: expected unqualified-id before '++' token
for (i = 0; i < BOX_INVENTORY_MAX_NUM; ++i)
^~
char_item.cpp:637:2: error: expected unqualified-id before 'for'
for (i = 0; i < EFSUN_INVENTORY_MAX_NUM; ++i)
^~~
char_item.cpp:637:14: error: 'i' does not name a type
for (i = 0; i < EFSUN_INVENTORY_MAX_NUM; ++i)
^
char_item.cpp:637:43: error: expected unqualified-id before '++' token
for (i = 0; i < EFSUN_INVENTORY_MAX_NUM; ++i)
^~
char_item.cpp:649:2: error: expected unqualified-id before 'for'
for (i = 0; i < CICEK_INVENTORY_MAX_NUM; ++i)
^~~
char_item.cpp:649:14: error: 'i' does not name a type
for (i = 0; i < CICEK_INVENTORY_MAX_NUM; ++i)
^
char_item.cpp:649:43: error: expected unqualified-id before '++' token
for (i = 0; i < CICEK_INVENTORY_MAX_NUM; ++i)
^~
char_item.cpp: In member function 'bool CHARACTER::UnequipItem(LPITEM)':
char_item.cpp:7235:2: error: expected '}' before 'else'
else if (item->IsSkillBook())
^~~~
char_item.cpp:7232:2: note: to match this '{'
{
^
char_item.cpp: At global scope:
char_item.cpp:7249:2: error: expected unqualified-id before 'else'
else
^~~~
char_item.cpp:7252:22: error: expected constructor, destructor, or type conversi on before ';' token
CheckMaximumPoints();
^
char_item.cpp:7254:2: error: expected unqualified-id before 'return'
return true;
^~~~~~
char_item.cpp:7255:1: error: expected declaration before '}' token
}
^
compiling db.cpp
compiling desc.cpp
char_item.cpp: In member function 'bool CHARACTER::UnequipItem(LPITEM)':
char_item.cpp:7248:2: warning: control reaches end of non-void function [-Wretur n-type]
}
^
compiling desc_client.cpp
gmake: *** [Makefile:183: .obj/char_item.o] Error 1
gmake: *** Waiting for unfinished jobs....
root@localhost:/usr/src/GameSource/Server/game/src #
 
@Huez merhabalar hocam ya böyle hatalarla karşılaşmam cok saçma dediklerini yapıyorum ama malesef hiç birzaman beceremedim yani şu kod satırlarının neresinde ne gibi bir hata var bununla ilgili veriyormu acaba bu syserr
 

Şu an konuyu görüntüleyenler (Toplam : 0, Üye: 0, Misafir: 0)

Geri
Üst