23.08.2012, 07:35
pawn Код:
if (dialogid == DIALOGID+66)
{
if(response == 0 && ServerInfo[MustRegister] == 1)
{
Kick(playerid);
}
if(response)
{
if (strlen(inputtext) < 4 || strlen(inputtext) > 20)
{
new rstring[256];
format(rstring,256,"Sorry %s\n\nThe length of your password should contain more \nthan 3 characters and less than 20 characters! \n\n Please, re-enter the Password:",pName(playerid));
return ShowPlayerDialog(playerid,DIALOGID+68,DIALOG_STYLE_INPUT,"Register Error!",rstring,"Register","Quit");
}
if (udb_Create(PlayerName2(playerid)))
{
ShowPlayerDialog(playerid,DIALOG_TYPE_QUESTION,DIALOG_STYLE_INPUT,"LuxAdmin - Account Safety Question","Type a security question, for when you forget\n your password, you just answer this Question.","Next","End");
//CODE CONTINUES...
Also add the line:
pawn Код:
public OnPlayerConnect(playerid)
{
AccInfo[playerid][NoQuestion] = 1;
return 1;
}