Fethi Polat 1
Fethi Polat
Bvural41 1
Bvural41
OnurBoyla 1
OnurBoyla
mavzermete 1
mavzermete
xranzei 1
xranzei
Manwe Work 1
Manwe Work
noisiv 1
noisiv
Hikaye Ekle

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

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!

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