14.07.2014, 14:21
I discovered a very horrible problem at my server.
When you login to the server you have to type the password, but when i click login or click enter. it log in
So, i added this code :
But it still not working.
Here's the code :
Help
When you login to the server you have to type the password, but when i click login or click enter. it log in
So, i added this code :
PHP код:
if (isnull(inputtext)) return SendClientMessage(playerid, -1, ""RED"ERROR: "GREY"You have not specified any password.");
Here's the code :
PHP код:
ShowPlayerDialog(playerid, LOGIN, DIALOG_STYLE_PASSWORD, ""RED">> "PREMIUM"Account Login", ""WHITE"Welcome back to "RED"Extreme Street Fighters"WHITE"!\n"WHITE"This account is "GREEN"registered"WHITE".\n\n"YELLOW"» Please enter your password below to login.", "Login", "Quit");
PlayerInfo[playerid][LoginFail]++;
if (isnull(inputtext)) return SendClientMessage(playerid, -1, ""RED"ERROR: "GREY"You have not specified any password"); // This code
switch (PlayerInfo[playerid][LoginFail])
{
case 1: SendClientMessage(playerid, -1, ""RED":: "GREY"You have entered an incorrect password! (1/3)");
case 2: SendClientMessage(playerid, -1, ""RED":: "GREY"You have entered an incorrect password! (2/3)");
case 3:
{
SendClientMessage(playerid, -1, ""RED":: "GREY"You have reached your maximum login attempts! (3/3)");
SetTimerEx("KickOnFail", 500, false, "i", playerid);
}
}
return 1;
