emirhanHCL 1
emirhanHCL
kralhakan2009 1
kralhakan2009
Vahsi Uzman 1
Vahsi Uzman
farkmt2official 1
farkmt2official
Hikaye Ekle

Cevaplanmadı Marty sama 5.8 battle.cpp:100:2: warning:

Türkiye'de ilk Mobil & PC Aynı Anda Metin2 Oyna. Triarchonline kalıcı ve uzun ömürlü yapısı ile 24 Temmuz'da açılıyor. | 1-99 Mobil Metin2 Triarch HEMEN TIKLA!

Hello colleagues, how are you? Would anyone be so kind as to help me solve this?

compiling PetSystem.cpp
compiling cmd.cpp
compiling cmd_emotion.cpp
compiling cmd_general.cpp
battle.cpp:100:2: warning: misleading indentation; statement is not part of the previous 'if' [-Wmisleading-indentation]
100 | if (victim->IsDead() || victim->IsObserverMode())
| ^
battle.cpp:96:4: note: previous statement is here
96 | if (victim->IsGM())
| ^
compiling cmd_gm.cpp
compiling cmd_oxevent.cpp
compiling config.cpp
compiling constants.cpp
compiling crc32.cpp
1 warning generated.
char_battle.cpp:224:2: compiling cube.cpp
warning: misleading indentation; statement is not part of the previous 'if' [-Wm isleading-indentation]
224 | DWORD dwCurrentTime = get_dword_time();
| ^
char_battle.cpp:219:5: note: previous statement is here
219 | if (IsPC() && pkVictim->IsGM())
| ^
compiling db.cpp
compiling desc.cpp
compiling desc_client.cpp

1727999660207.png
 

Ekli dosyalar

  • src.zip
    src.zip
    46.1 MB · Görüntüleme: 0
Son düzenleme:
battle.cpp:96

Kod:
if (victim->IsGM())
    return false;

to

Kod:
if (victim->IsGM()) {
    return false;
}


battle.cpp:100


Kod:
if (victim->IsDead() || victim->IsObserverMode())
    return false;

to

Kod:
if (victim->IsDead() || victim->IsObserverMode()) {
    return false;
}

char_battle.cpp:219

Kod:
if (IsPC() && pkVictim->IsGM())
    return false;

to

Kod:
DWORD dwCurrentTime = get_dword_time();
if (IsPC() && pkVictim->IsGM()) {
    return false;
}

char_battle.cpp:224

Kod:
DWORD dwCurrentTime = get_dword_time();
if (IsPC() && pkVictim->IsGM())
    return false;

to

Kod:
DWORD dwCurrentTime = get_dword_time();
if (IsPC() && pkVictim->IsGM()) {
    return false;
}
 

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

Geri
Üst