if (!response) return Kick(playerid);
Do you have this?
Код:
case DIALOG_REGISTER:
{
if (!response) return Kick(playerid); // THIS IS WHAT HAPPEND WHEN PLAYER QUIT REGISTER DIALOG! (NOTHING SAVED - JUST KICK THE HELLBOY OUT OF YOUR HOOD)
if(response)
{
if(!strlen(inputtext)) return ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_PASSWORD,
""COL_WHITE"Making your account ..",""COL_RED"You have entered an invalid
password.\n"COL_WHITE"Type your
password below to register a new account.","Register","Quit");
new INI:File = INI_Open(UserPath(playerid));
INI_SetTag(File,"PlayerData");
new HashPass[129];
WP_Hash(HashPass, sizeof(HashPass), inputtext);
INI_WriteString(File, "Password", HashPass);
INI_WriteInt(File,"Cash",0);
INI_WriteInt(File,"Admin",-1);
INI_WriteInt(File,"Kills",0);
INI_WriteInt(File,"Deaths",0);
INI_Close(File);
SetSpawnInfo(playerid, 0, 0, 1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0);
ShowPlayerDialog(playerid, DIALOG_SUCCESS_1, DIALOG_STYLE_MSGBOX,""COL_WHITE"Account
created!",""COL_GREEN"You've created an account successfuly. Relogging is recommended.","Ok","");
}
}