BCE0044: expecting EOF, found 'case'. HELP! please?

The script

function Qualities() {

    }case UnityEngine.QualityLevel.Fastest;

    GUILayout.Label("Fastest");

    break;

    case QualityLevel.Fast:

    GUILayout.Label("Fast");

    break;

    case QualityLevel.Simple:

    GUILayout.Label("Simple");

    break;

    case QualityLevel.Good:

    GUILayout.Label("Good");

    break;

    case QualityLevel.Beautiful:

    GUILayout.Label("Beautiful");

    break;

    case QualityLevel.Fantastic:

    GUILayout.Label("Fantastic");

    break;
}

}

The error

BCE0044: expecting EOF, found ‘case’.

you are trying to do a switch/case statement, with no switch…
it should look like this:

function Qualities() {
    switch (UnityEngine.QualityLevel){
    case QualityLevel.Fastest:
    GUILayout.Label("Fastest");
    break;
    case QualityLevel.Fast:
    GUILayout.Label("Fast");
    break;

…etc.

(and your errant closing bracket at the top means nothing is inside the function anyway…):

function Qualities() {

}//closes the empty function, everything after this is unencapsulated