• 🎉 Hey there! I've just launched my brand new server voting platform — Metin2 P Servers 🚀

[C++] Auto attack system

Member
Nov
Threads
0
8
0
1
HubMoney
127
View attachment 1686

Download

[Hidden content]
The following error occurs:

# gmake default linking ../game.... ld: error: undefined symbol: do_otomatikav_komut1(CHARACTER*, char const*, int, int) >>> referenced by cmd.cpp >>> OBJDIR/cmd.o:(cmd_info) ld: error: undefined symbol: do_otomatikav_komut2(CHARACTER*, char const*, int, int) >>> referenced by cmd.cpp >>> OBJDIR/cmd.o:(cmd_info) clang++: error: linker command failed with exit code 1 (use -v to see invocation) gmake: *** [Makefile:111: ../game] Error 1

In cmd.cpp I put:

// otomatikav ACMD(do_event_flag); ACMD(do_otomatikav_komut1); ACMD(do_otomatikav_komut2); // end otomatikav

before

struct command_info cmd_info[] =

and I put it below

// otomatikav { "gskillup", do_guildskillup, 0,POS_DEAD, GM_PLAYER}, { "otomatikav_komut1", do_otomatikav_komut1, 0, POS_DEAD,GM_PLAYER}, { "otomatikav_komut2", do_otomatikav_komut2, 0, POS_DEAD,GM_PLAYER}, // end otomatikav

above at

{ "\n", NULL, 0, POS_DEAD, GM_IMPLEMENTOR }

What should I do in your opinion?