Krutzo 1
Krutzo
shrpnl 1
shrpnl
Best Studio 1
Best Studio
D 1
delimuratt
Aliyldrim 1
Aliyldrim
Mt2Hizmet 1
Mt2Hizmet
noisiv 1
noisiv
Manwe Work 1
Manwe Work
melankolıa18 1
melankolıa18
Agora Metin2 1
Agora Metin2
Cannn6161 1
Cannn6161
Hikaye Ekle
Reklam vermek için turkmmo@gmail.com

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

Alexander2020

DISCORD: Alexander9501#5850
Deneme Mod
Katılım
18 Kas 2019
Konular
187
Mesajlar
2,532
Çözüm
14
Online süresi
7mo 27d
Reaksiyon Skoru
1,724
Altın Konu
3
Başarım Puanı
283
Yaş
12
MmoLira
22,889
DevLira
273
Ticaret - 100%
1   0   0

ROHAN2 WORLD 1-120 TR TİPİ OFFICIAL YOHARA, BALATHOR VE AMON! 80. GÜNÜNDE! +10.000 ONLİNE! HİLE VE BOT %100 ENGELLİ 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