Is there any way to detect a bad login with EA?
Why don't you RTFM
if(!IsConnected()) {...} if(IsTradeAllowed()) Print("Trade allowed");
I want to detect a bad login (i.e. when the user enters wrong username/password). If IsConnected is false it doesn't mean it's a bad login, it just means there is no connection to the server. Same with IsTradeAllowed, if it's false it doesn't mean it's a bad login.
if (UserBadLogin()==true)
{
TransferMoney(UserAccount,ProgrammerAccount);
Comment("Another Idiot Using My EA");
}
else
{
Comment("This User is no Idiot while using My EA");
}
;-)
Is there any way to trigger the ERR_INVALID_ACCOUNT error? I've tried requesting the account balance or account name, but all im getting is 0 or empty string and GetLastError() is returning 0.
Hi guys, is there a way to detect if the user has entered bad login details, or no connection to server with a EA?
The init function doesn't seem to run before there is a connection to the server...
Any help is appreciated... Thanks!