10.11.2016, 19:37
All of my other dialogs work although this one doesn't.
It shows the dialog although it doesn't execute (no errors/warnings and everything's defined):
It shows the dialog although it doesn't execute (no errors/warnings and everything's defined):
PHP код:
if(dialogid == DIALOG_REGISTER)
{
new registermsg[90], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, sizeof(pName));
if(response)
{
if(strlen(inputtext) == 0)
{
SendClientMessage(playerid, -1, "Please enter a vaild password!");
format(registermsg, sizeof(registermsg), "Welcome to my server, %s!\nPlease enter a password in order to register!", pName);
ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_PASSWORD, "{FFFFFF}Register", registermsg, "Register", "Quit");
}
else if(strlen(inputtext) > 18)
{
SendClientMessage(playerid, -1, "The password can go up to 18 letters or less!");
format(registermsg, sizeof(registermsg), "Welcome to my server, %s!\nPlease enter a password in order to register!", pName);
ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_PASSWORD, "{FFFFFF}Register", registermsg, "Register", "Quit");
}
else
{
dini_IntSet(file, "Password", pPassword);
dini_IntSet(file, "Registered", 1);
SendClientMessage(playerid, -1, "Test");
}
}
}