script bug please help

hey guys Please look afther the functio else thare is the problem but i cant fix it thanks

  var Component : GUIText;
  function OnTriggerEnter(other : Collider) {
    Component.guiText.text = "Press f to talk to the Comander";
  }

  function OnTriggerStay(other : Collider) {
    if( Input.GetKeyDown( "f" ) )
    {
      audio.Play(03);
    }
  }

  function OnTriggerExit(other : Collider) {
    Component.guiText.text = "";
    active = false;
  }
  }
    else
    {
      //here is the problem it wont become visible again the first time i trigger it it works fine
      //But when i walk in again nothing happens how??
      if function OnTriggerEnter(other : Collider) {
        Component.guiText.text = "Press f to talk to the Comander";
      }
    }

Your else statement isn't doing anything... It's not in a function, and it's not formatted right...

So, what it looks like you're trying to do is make it so that if you get on the trigger, you see the prompt "Press F..." so, just leave it like that, take out the else, and you should be good...

Then when you get on the trigger, it'll say press f, if your on it and u push f, it'll do the clip, and then when you exit, it'll reset the text.