Look at your error messages in the Error Pane. Double clicking on a message takes you to the line that it concerns. They describe the problem pretty well!
"Newline in constant"
salespersonsName[salespersons] = GetValidName("Enter
the player name: ");
Strings can't cross lines unless they are prefixed with '@'. Remove the newline:
salespersonsName[salespersons] = GetValidName("Enter the player name: ");
And the problem goes away.
Fix that, and you get another error:
No overload for method 'CalculateCommission' takes 1 arguments
CalculateCommission(salepersonsCom[salespersons])[index]);
Look at the method itself:
static double CalculateCommission(double sales, ref int salespersons, double[] salepersonsCom)
{
...
}
That needs three parameters.
Supply the parameters!