You ask either guy: Which door would the other guy say the money is behind. Then pick the other door. This is why: if you ask the truth teller, who will tell you the door the liar will tell you, the wrong door. If you ask the liar, he will tell you the wrong door, because he lies about what door the truth teller would say. In either case, they give you the wrong door, so you choose the other.
It doesn't matter which man you ask. The answer you get will tell you where the million $ is, although you still won't know whether the man you asked was the liar or the truther. (But who cares about that. Right ?)
Pick either 'guard',and ask him:
"*** IF*** I were to ask you 'Is the money behind your door ?', would you say 'Yes' ? "
To determine which door has the money, ask either man: "If I were to ask you if the money is behind your door, would you say yes?" Regardless of who you ask, a yes answer would indicate the door he guards has the money behind it. This way, you can confidently choose the correct door to win the prize.
;