bool CDesertEagle::AddToPlayer(CBasePlayer* pPlayer)
{
// AddToPlayer returns true if the weapon was picked up
if (CBasePlayerWeapon::AddToPlayer(pPlayer))
{
// Send a message to the client so the pickup icon can be shown
MESSAGE_BEGIN(MSG_ONE, gmsgWeapPickup, NULL, pPlayer->pev);
WRITE_BYTE(m_iId);
MESSAGE_END();
return true;
}
return false;
}

I'm getting two errors:

1- expression must have bool type (or be convertible to bool) D:\halflife-updated-master\projects\vs2019\deserteagle.cpp 95
2- declaration is incompatible with "void CDesertEagle::AddToPlayer(CBasePlayer *pPlayer)" (declared at line 1237 of "D:/halflife-updated-master/dlls/weapons.h") hl_cdll D:\halflife-updated-master\projects\vs2019\deserteagle.cpp 92