Jump to content

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
https://metin2.dev/topic/29136-adding-antiflood-failed/
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

  • Honorable Member

@ 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
https://metin2.dev/topic/29136-adding-antiflood-failed/#findComment-149463
Share on other sites

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • 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.