Bvural41 1
Bvural41
-TuRKuaZ- 1
-TuRKuaZ-
farkmt2official 1
farkmt2official
Sevdamsın 1
Sevdamsın
mavzermete 1
mavzermete
xranzei 1
xranzei
Best Studio 1
Best Studio
Hikaye Ekle

[C++] Source Pet Atak Sistemi

  • Konuyu başlatan Konuyu başlatan DevSheen
  • Başlangıç tarihi Başlangıç tarihi
  • Cevaplar Cevaplar 37
  • Görüntüleme Görüntüleme 11K
Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...
Kod:
char_battle.cpp:182: error: 'iRet' was not declared in this scope
char_battle.cpp:184: error: invalid use of incomplete type 'struct CPetSystem'
char.h:18: error: forward declaration of 'struct CPetSystem'
char_battle.cpp:185: error: invalid use of incomplete type 'struct CPetSystem'
char.h:18: error: forward declaration of 'struct CPetSystem'
char_item.cpp: In member function 'bool CHARACTER::IsEmptyItemGrid(TItemPos, BYTE, int) const':
char_item.cpp:640: warning: comparison is always false due to limited range of data type
char_item.cpp:666: warning: comparison is always false due to limited range of data type
char_item.cpp: In member function 'void CHARACTER::__OpenPrivateShop()':
char_item.cpp:1562: error: return-statement with a value, in function returning 'void'
gmake: *** [OBJDIR/char_battle.o] Error 1
gmake: *** Waiting for unfinished jobs....

Yardımcı olursanız verilen kodları sorunsuz tabl'ı halde yerleştirdim fakat verilen hatalar belli .

Sorunun oluştuğu dosya : char_battle.cpp

Ellerine sağlık.​
 
Kod:
char_battle.cpp:182: error: 'iRet' was not declared in this scope
char_battle.cpp:184: error: invalid use of incomplete type 'struct CPetSystem'
char.h:18: error: forward declaration of 'struct CPetSystem'
char_battle.cpp:185: error: invalid use of incomplete type 'struct CPetSystem'
char.h:18: error: forward declaration of 'struct CPetSystem'
char_item.cpp: In member function 'bool CHARACTER::IsEmptyItemGrid(TItemPos, BYTE, int) const':
char_item.cpp:640: warning: comparison is always false due to limited range of data type
char_item.cpp:666: warning: comparison is always false due to limited range of data type
char_item.cpp: In member function 'void CHARACTER::__OpenPrivateShop()':
char_item.cpp:1562: error: return-statement with a value, in function returning 'void'
gmake: *** [OBJDIR/char_battle.o] Error 1
gmake: *** Waiting for unfinished jobs....

Yardımcı olursanız verilen kodları sorunsuz tabl'ı halde yerleştirdim fakat verilen hatalar belli .

Sorunun oluştuğu dosya : char_battle.cpp

Ellerine sağlık.​

char_battle.cpp de

Kod:
        if (BATTLE_DEAD == iRet && IsPC())
            SetVictim(NULL);

[CODE]

Üstteki Satırın Altına Ekle

[CODE]

    if (BATTLE_DEAD != iRet && IsPC())
    {
    if (m_petSystem && m_petSystem->CountSummoned() > 0)
    m_petSystem->LaunchAttack(pkVictim);
    }

Bu Şekilde Eklenir
 
Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...

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

Geri
Üst