Directplay is part of DirectX API that was used for game development and is no longer explicitly included. I'm honestly not sure how to fix it or what its replacement is.
Oh I see. I gues it is because I made the game in the old Game Maker version.