Really need help: error with GameModeBase

Hello, for the past week I have been trying to work on a dedicated server, and had a lot of issues in the process and I have overcome by forums online but this issue’s different when fixing errors I have stumbled across errors that forums did not already have the answer to. the issues are shown in the images below. If anyone could help me it would be great. Thank you!!

sorry I forgot to add the errors

The red squiggly lines on the include, the public AGameModeBase, and the

identifier “AGameModeBase” is
undefined
are all indications that you have not included the required header. Looking at the api, It tells you at the bottom what header is needed,
Header Runtime/Engine/Classes/GameFramework/GameModeBase.h

You need to include ‘GameFramework/GameModeBase.h’

It’s also good practice to foward declare in your header files and include the headers in your .CPP file.

what about on error two?

I have included the file and the problem was it needed a specific path and error 1 is fixed since GameModeBase.h and C:/Users/tjsun/Documents/Unreal Projects/Engine/Source/Runtime/Engine/Classes/GameFramework/GameModeBase.h are technically the same file I looked on the file itself and got error 2

and also why would the specific path work compared to the file imported into visual studio itself it is just frustrating

If you need it in full context this is it