Lucrăm la îmbunătățirea site-ului! Este posibil ca unele module să nu funcționeze corect!
4 mesaje

Autor subiect

  • Mesaje: 7
  • Reacții: 1
  • Mesaje utile: 0
  • Medalii

    *Problemă/Întrebare: Ce am gresit/unde ?

    *Resursă folosită (sistem/funcție/modificare): martysama

    *Syserr: -

    *Fișier(e) cu problema (link pastebin / code): https://pastebin.com/cYSZ8wDA

    *Poze / Video:Problema char_affect.cpp - Mesaj 1 - Imagine 1
    char_affect.cpp:77:2: error: #else without #if
    77 | #else
    | ^~~~
    char_affect.cpp:79:2: error: #endif without #if
    79 | #endif
    | ^~~~~
    [OK] Compilando: char_battle.cpp
    char_affect.cpp: In function 'void SendAffectAddPacket(LPDESC, CAffect*)':
    char_affect.cpp:75:1: error: 'ifdef' was not declared in this scope
    75 | ifdef RENEWAL_PICKUP_AFFECT
    | ^~~~~
    char_affect.cpp: In member function 'bool CHARACTER::RemoveAffect(CAffect*, bool )':
    char_affect.cpp:858:5: error: 'it' was not declared in this scope; did you mean 'int'?
    858 | ++it;
    | ^~
    | int
    char_affect.cpp:859:3: error: continue statement not within a loop
    859 | continue;
    | ^~~~~~~~
    At global scope:
    cc1plus: note: unrecognized command-line option '-Wno-deprecated-enum-enum-conve rsion' may have been intended to silence earlier diagnostics
    gmake: *** [Makefile:164: .obj/char_affect.o] Error 1
    gmake: *** Waiting for unfinished jobs....
    root@enix:/usr/src/Source/Server/game/src # gmake -j4
    [OK] Compilando: char_affect.cpp
    [OK] Compilando: char_change_empire.cpp
    [OK] Compilando: char_horse.cpp
    [OK] Compilando: char_item.cpp
    char_affect.cpp: In member function 'bool CHARACTER::RemoveAffect(CAffect*, bool )':
    char_affect.cpp:860:5: error: 'it' was not declared in this scope; did you mean 'int'?
    860 | ++it;
    | ^~
    | int
    char_affect.cpp:861:3: error: continue statement not within a loop
    861 | continue;
    | ^~~~~~~~
    At global scope:
    cc1plus: note: unrecognized command-line option '-Wno-deprecated-enum-enum-conve rsion' may have been intended to silence earlier diagnostics
    gmake: *** [Makefile:163: .obj/char_affect.o] Error 1
    gmake: *** Waiting for unfinished jobs....
    char_item.cpp: In member function 'bool CHARACTER::UseItemEx(LPITEM, TItemPos)':
    char_item.cpp:2670:32: error: qualified-id in declaration before '(' token
    2670 | void CHARACTER::AutoGiveItemNew(LPITEM item, bool printMsg)
    | ^
    char_item.cpp:2749:34: error: qualified-id in declaration before '(' token
    2749 | bool CHARACTER::CanPickupDirectly()
    | ^
    At global scope:
    cc1plus: note: unrecognized command-line option '-Wno-deprecated-enum-enum-conve rsion' may have been intended to silence earlier diagnostics
    gmake: *** [Makefile:162: .obj/char_item.o] Error 1

    🔥 Hai pe Discord! - Chat activ și support direct

    Te așteptăm și pe serverul de Discord - aici ne-am strâns toată comunitatea de Metin2 din România.

    Alătură-te acum!
    1300+ de membri activi!
    Robot Discord
    Roboțelu'
    Anunț
    Avatar utilizator
    Lider Moderator Lider Moderator
  • Mesaje: 595
  • Reacții: 7646
  • Mesaje utile: 6
  • Status: Totul pentru o experiență Metin2 perfectă
  • Server: VR2
  • Regat: Shinsoo
  • Discord: [Vezi ID]
  • Contact:

    Medalii

    Avatar utilizator
    Lider Moderator
    Lider Moderator
    Nu ai pus functiile unde trebuie, reia tutrialul si fi atent!

    Autor subiect

  • Mesaje: 7
  • Reacții: 1
  • Mesaje utile: 0
  • Medalii

    Asta stiu si eu dar tutorialul e prost facut si nu stiu unde sa le pun. "# Search

    if (IsPC())
    SendAffectRemovePacket(GetDesc(), GetPlayerID(), pkAff->dwType, pkAff->bApplyOn);

    # Add after

    #ifdef RENEWAL_PICKUP_AFFECT
    if(IsRealTimeAffect(pkAff->dwType))
    {
    ++it;
    continue;
    }
    #endif" am vreo 4 if (IsPC())
    SendAffectRemovePacket(GetDesc(), GetPlayerID(), pkAff->dwType, pkAff->bApplyOn);

    apoi mai sunt 2 cazuri unde am gresit ceva din cauza ca nu stiu unde sa le pun :))
    Avatar utilizator
    Lider Moderator Lider Moderator
  • Mesaje: 595
  • Reacții: 7646
  • Mesaje utile: 6
  • Status: Totul pentru o experiență Metin2 perfectă
  • Server: VR2
  • Regat: Shinsoo
  • Discord: [Vezi ID]
  • Contact:

    Medalii

    Avatar utilizator
    Lider Moderator
    Lider Moderator
    verifica unde ai functii de genu ( ++it;) astfel poti sa iti dai seama

    Daca tot nu reusesti da-mi add pe Discord si mai pe seara o sa ti le fac eu.

    🔥 Hai pe Discord! - Chat activ și support direct

    Te așteptăm și pe serverul de Discord - aici ne-am strâns toată comunitatea de Metin2 din România.

    Alătură-te acum!
    1300+ de membri activi!
    Robot Discord
    Roboțelu'
    Anunț
    Închis

    Înapoi la “Arhivă probleme”

    Informații

    Utilizatori ce navighează pe acest forum: Niciun utilizator înregistrat și 1 vizitator