View Full Version : [SOLVED] error arena1c1

07-01-2014, 05:34 AM
Hello I have a small problem which I do not manage to correct during the compilation.

Here is .cpp patch and .h

And here are the errors:

/root/TrinityCore/src/server/scripts/Custom/npc_arena1v1.cpp: In member function ‘bool npc_1v1arena::JoinQueueArena(Player*, Creature*, bool)’:
/root/TrinityCore/src/server/scripts/Custom/npc_arena1v1.cpp:29:10: warning: unused variable ‘guid’ [-Wunused-variable]
/root/TrinityCore/src/server/scripts/Custom/npc_arena1v1.cpp:59:31: warning: unused variable ‘err’ [-Wunused-variable]
/root/TrinityCore/src/server/scripts/Custom/npc_arena1v1.cpp: In member function ‘virtual bool npc_1v1arena::OnGossipHello(Player*, Creature*)’:
/root/TrinityCore/src/server/scripts/Custom/npc_arena1v1.cpp:165:28: error: ‘CONFIG_ARENA_1V1_ENABLE’ was not declared in this scope
compilation terminated due to -Wfatal-errors.
make[2]: *** [src/server/scripts/CMakeFiles/scripts.dir/Custom/npc_arena1v1.cpp.o] Error 1
make[1]: *** [src/server/scripts/CMakeFiles/scripts.dir/all] Error 2
make: *** [all] Error 2

Thank you for being willing to help me, his fact maintaining two hours for which I look:s

07-01-2014, 02:10 PM
Just comment this out

/*if(sWorld->getBoolConfig(CONFIG_ARENA_1V1_ENABLE) == false)
ChatHandler(player->GetSession()).SendSysMessage("1v1 Desactiver !");
return true;