Jump to content

Adding ANTIFLOOD failed


Recommended Posts

Hi, I'm trying to add this https://metin2.dev/topic/25330-how-to-avoid-getting-flooded-in-2021/ according to the instructions but I get an error when compiling.

compiling char.cpp
compiling char_affect.cpp
char.cpp:183:2: error: use of undeclared identifier 'analize_protect_count'; did you mean 'analyze_protect_count'?
        analize_protect_count = 0;
        ^~~~~~~~~~~~~~~~~~~~~
        analyze_protect_count
./char.h:649:6: note: 'analyze_protect_count' declared here
        int analyze_protect_count;
            ^
char.cpp:557:2: error: use of undeclared identifier 'analize_protect_count'; did you mean 'analyze_protect_count'?
        analize_protect_count = 0;
        ^~~~~~~~~~~~~~~~~~~~~
        analyze_protect_count
./char.h:649:6: note: 'analyze_protect_count' declared here
        int analyze_protect_count;
            ^
2 errors generated.
gmake: *** [Makefile:107: .obj/char.o] Error 1
gmake: *** Waiting for unfinished jobs....



How to solve this and where exactly to put this in the char.h file

int analyze_protect;
int analyze_protect_count;

Thank you very much 🙂

 

Resolved. I've been looking at the PC for a few hours and didn't notice a minor bug. I apologize.

Edited by PeterCZ
Resolved
Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

  • Premium

@ Ikarus_ made a mistake when initializing the var in the topic, and @ Speachless didn't catch it. Happens.

qWhowba.png

Rename it to:

Quote

analyze_protect_count

 

 

Edited by Metin2 Dev
Core X - External 2 Internal
  • Love 1

 

"Nothing's free in this life.

Ignorant people have an obligation to make up for their ignorance by paying those who help them.

Either you got the brains or cash, if you lack both you're useless."

Syreldar

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.