19.03.2013, 14:49
Hey, I am currently using Blueberry Prison Roleplay script.
I have uploaded it on VoltHost - players started joining and suddenly I seen playerbase is dropping.
I /q'ed for the night, woke up and tried to login and I just couldn't, I write in the password and nothing happens.
Here's my DIALOG_LOGIN - It's the dialog that opens once you connect to the server.
Early thanks!
EDIT - Even if I put a wrong password, it closes the Dialog and wont do anything, no error,nothing.
Thanks!
I have uploaded it on VoltHost - players started joining and suddenly I seen playerbase is dropping.
I /q'ed for the night, woke up and tried to login and I just couldn't, I write in the password and nothing happens.
Here's my DIALOG_LOGIN - It's the dialog that opens once you connect to the server.
Код:
if(dialogid == DIALOG_LOGIN)
{
if(!response)
{
SendClientMessage(playerid, GREY, "You didn't log in.");
Kick(playerid);
}
if(response)
{
if(!strlen(inputtext))
{
ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT, "Log In","You have entered an invalid password.\nPlease input this account password to log in.","Login","Quit");
}
if(INI_Open(Accounts(playerid)))
{
INI_ReadString(PlayerStat[playerid][Password],"Password",20);
if(strcmp(inputtext,PlayerStat[playerid][Password],false))
{
if(PlayerStat[playerid][WrongPw] == 1)
{
SendClientMessage(playerid, GREY, "You have been kicked for not entering the correct password.");
Kick(playerid);
}
else
{
ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT, "Log In","You have entered an incorrect password.\nPlease input this account password to log in.","Login","Quit");
SendClientMessage(playerid, GREY, "You only have one last chance to enter this account password or you'll get kicked.");
PlayerStat[playerid][WrongPw] = 1;
TogglePlayerControllable(playerid, false);
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, playerid+0);
SetSpawnInfo(playerid, 0, 0, 19.4895,-331.0008,26.1236 , 0, 0, 0, 0, 0, 0, 0);
SpawnPlayer(playerid);
SetPlayerCameraPos(playerid, 1752.4188, -1527.8185, 20.2753);
SetPlayerCameraLookAt(playerid, 1753.0366, -1528.6036, 19.8853);
}
}
else
{
new str[128];
format(str, sizeof(str), "Welcome Back %s, your last login was on %d/%d/%d at %d:%d:%d.", GetOOCName(playerid), PlayerStat[playerid][LastLoginYear], PlayerStat[playerid][LastLoginMonth], PlayerStat[playerid][LastLoginDay], PlayerStat[playerid][LastLoginHour], PlayerStat[playerid][LastLoginMinute], PlayerStat[playerid][LastLoginSecond]);
SendClientMessage(playerid, GREEN, str);
format(str, sizeof(str), "~w~Welcome Back ~n~~y~ %s", GetOOCName(playerid));
GameTextForPlayer(playerid, str, 3000, 1);
SendClientMessage(playerid, GREEN, SERVER_MOTD);
new Hour, Minute, Second;
new Day, Month, Year;
gettime(Hour, Minute, Second);
getdate(Year, Month, Day);
PlayerStat[playerid][LastLoginSecond] = Second;
PlayerStat[playerid][LastLoginMinute] = Minute;
PlayerStat[playerid][LastLoginHour] = Hour;
PlayerStat[playerid][LastLoginDay] = Day;
PlayerStat[playerid][LastLoginMonth] = Month;
PlayerStat[playerid][LastLoginYear] = Year;
INI_WriteInt("LastLoginSecond",PlayerStat[playerid][LastLoginSecond]);
INI_WriteInt("LastLoginMinute",PlayerStat[playerid][LastLoginMinute]);
INI_WriteInt("LastLoginHour",PlayerStat[playerid][LastLoginHour]);
INI_WriteInt("LastLoginDay",PlayerStat[playerid][LastLoginDay]);
INI_WriteInt("LastLoginMonth",PlayerStat[playerid][LastLoginMonth]);
INI_WriteInt("LastLoginYear",PlayerStat[playerid][LastLoginYear]);
if(PlayerStat[playerid][GangID] >= 1)
{
format(str, sizeof(str), "Gang MOTD: %s", GangStat[PlayerStat[playerid][GangID]][MOTD]);
SendClientMessage(playerid, GangStat[PlayerStat[playerid][GangID]][Color], str);
}
PlayerStat[playerid][Logged] = 1;
LoadPlayerData(playerid);
INI_Save();
INI_Close();
}
}
}
}
EDIT - Even if I put a wrong password, it closes the Dialog and wont do anything, no error,nothing.
Thanks!

