21.06.2016, 18:13
Quote:
Add this line to the top of OnPlayerRegister:
PHP код:
|
PHP код:
forward OnPlayerRegister(playerid, password[]);
Or :
PHP код:
if(dialogid == 1246)
{
if(response == 1)
{
if(strlen(inputtext) < 3)
{
ShowPlayerDialog(playerid, 1246, DIALOG_STYLE_INPUT,"Try Again, Please Register","The password entered is Too Short!\nType your password below to register a new account.","Register","Quit");
return 1;
}
if(strlen(inputtext) > 20)
{
ShowPlayerDialog(playerid, 1246, DIALOG_STYLE_INPUT,"Try Again, Please Register","The password entered is too Long!\nType your password below to register a new account.","Register","Quit");
return 1;
}
OnPlayerRegister(playerid, inputtext);
}
else
{
Kick(playerid);