Welcome to Smogon! Take a moment to read the Introduction to Smogon for a run-down on everything Smogon, and make sure you take some time to read the global rules.
In doubles battles (vgc 2014) if you only have one pokemon left, when you click to send it out nothing happens and the options stay grey until you either cancel (which does nothing) or the game times out and you lose. has been happening to me all night.