but if you mistype the password or something it tells you to fix that...what do you think?

the api url and password is correct

I assume you are referring to the Poker_API() function I posted. You only get that "Connection failed" result if your script can't connect to the game server (it's either offline or there's an internet connection problem). If there is some other problem with a parameter then $api["Result"] will be set to "Error" and $api["Error"] will have a description of that error. This is all documented in the help file examples.