Skocz do zawartości
  • 👋 Witaj na MPCForum!

    Przeglądasz forum jako gość, co oznacza, że wiele świetnych funkcji jest jeszcze przed Tobą! 😎

    • Pełny dostęp do działów i ukrytych treści
    • Możliwość pisania i odpowiadania w tematach
    • System prywatnych wiadomości
    • Zbieranie reputacji i rozwijanie swojego profilu
    • Członkostwo w jednej z największych społeczności graczy

    👉 Dołączenie zajmie Ci mniej niż minutę – a zyskasz znacznie więcej!

    Zarejestruj się teraz

Błąd podczas kompilacji game


Rekomendowane odpowiedzi

Opublikowano

Witam, podczas kompilacji game mam błąd

 

#--# ERROR LOG GAME:






In file included from BattleArena.cpp:6:

char.h: In member function 'void CHARACTER::ClearPMCounter()':

char.h:544: error: 'm_iPMCounter' was not declared in this scope

char.h: In member function 'void CHARACTER::IncreasePMCounter()':

char.h:545: error: 'm_iPMCounter' was not declared in this scope

char.h: In member function 'int CHARACTER::GetPMCounter() const':

char.h:547: error: 'm_iPMCounter' was not declared in this scope

char.h: In member function 'int CHARACTER::GetLastPMPulse() const':

char.h:548: error: 'm_iLastPMPulse' was not declared in this scope

gmake: *** [OBJDIR/BattleArena.o] Bł±d 1

gmake: *** Oczekiwanie na niezakończone zadania....

In file included from ani.cpp:11:

char.h: In member function 'void CHARACTER::ClearPMCounter()':

char.h:544: error: 'm_iPMCounter' was not declared in this scope

char.h: In member function 'void CHARACTER::IncreasePMCounter()':

char.h:545: error: 'm_iPMCounter' was not declared in this scope

char.h: In member function 'int CHARACTER::GetPMCounter() const':

char.h:547: error: 'm_iPMCounter' was not declared in this scope

char.h: In member function 'int CHARACTER::GetLastPMPulse() const':

char.h:548: error: 'm_iLastPMPulse' was not declared in this scope

gmake: *** [OBJDIR/ani.o] Bł±d 1

In file included from OXEvent.cpp:9:

char.h: In member function 'void CHARACTER::ClearPMCounter()':

char.h:544: error: 'm_iPMCounter' was not declared in this scope

char.h: In member function 'void CHARACTER::IncreasePMCounter()':

char.h:545: error: 'm_iPMCounter' was not declared in this scope

char.h: In member function 'int CHARACTER::GetPMCounter() const':

char.h:547: error: 'm_iPMCounter' was not declared in this scope

char.h: In member function 'int CHARACTER::GetLastPMPulse() const':

char.h:548: error: 'm_iLastPMPulse' was not declared in this scope

gmake: *** [OBJDIR/OXEvent.o] Bł±d 1

a tutaj #--# char.h linia 541-551

 


    public:

        DWORD GetAIFlag() const { return m_pointsInstant.dwAIFlag; }

 

        void                ClearPMCounter(void){ m_iPMCounter = 0; }   // linia 544

        void                IncreasePMCounter(void){ m_iPMCounter++; }

        void                SetLastPMPulse(void);

        int                 GetPMCounter(void) const { return m_iPMCounter; }

        int                 GetLastPMPulse(void) const { return m_iLastPMPulse; }   // linia 548

 

        void                SetAggressive();

        bool                IsAggressive() const;

sb can help me

graphic.png

i7-6700K l MSI GTX 1080 X l 2x8GB 3000MHz l MSI Z170A l SSD HyperX 240GB

  • Aive zmienił(a) tytuł na Błąd podczas kompilacji game
Opublikowano

'VARIABLE' was not declared  in this scope.. hmm poważnie nic Ci to nie mówi skoro piszesz kod, a z forum kojarzę że nie jesteś świeżakiem xD

 

Pst zadeklaruj zmienne :>

Zarchiwizowany

Ten temat przebywa obecnie w archiwum. Dodawanie nowych odpowiedzi zostało zablokowane.

×
×
  • Dodaj nową pozycję...