'GetPlayer': is not a member of 'ObjectMgr' //Line Player* player = sObjectMgr->GetPlayer(to.c_str()); Thank you very much for your help