View Full Version : [SOLVED] Error Compile World Channel + Conf

01-10-2016, 06:13 PM
Hello EmuDevs

I have a, error in the compilation of this World Channel.
Can somebody help me.
Thank you!

My Core: TrinityCore Eluna 3.3.5a Rev.59. 64x


The Color RED is my ERROR.

std::string command = ConfigMgr::GetStringDefault("WorldChat.command", "world"); // Command name
std::string CreatePlayerChat(uint64 guid)
// Getting player name as string.
Player * player = ObjectAccessor::FindPlayer(guid);
std::string _name = player->GetName();


01-10-2016, 06:32 PM
uint64 can not be automatically converted to ObjectGuid.
This is because the constructor that accepts a single uint64 as parameter is set as explicit, which means you need to explicitly call the constructor.

That means you need to use this:
Player * player = ObjectAccessor::FindPlayer(ObjectGuid(guid));

Or you need to otherwise change your code to use ObjectGuid insatead of uint64.

You might also need to add an include: #include "ObjectGuid.h"

01-10-2016, 07:14 PM
Ohhh.! My God :O Thanks PRO-ROCHET2 :3
this is fine now!

Thanks , thanks Thanks, thanks and more thanks :p

01-10-2016, 09:59 PM
Moved thread to the correct section. Hardware & Coding Support is not for WoW Emulation support (e.g. TrinityCore, MaNGOS, etc - however if you're creating an application and need support you can post a thread there). Next time pay attention to where you're creating a thread.

Marking solved.