27.05.2014, 07:46
Try it.
Код:
if(dialogid == DIALOG_LOGIN) { if(!response) return Kick(playerid); // if(response) // {// new hashpass[129]; // WP_Hash(hashpass,sizeof(hashpass),inputtext); if(hashpass==PlayerInfo[playerid][Pass]) //try out this {//then INI_ParseFile(UserPath(playerid),"loadaccount_%s",.bExtra = true, .extra = playerid); SetPlayerScore(playerid,PlayerInfo[playerid][Score]);// GivePlayerMoney(playerid,PlayerInfo[playerid][Cash]); SendClientMessage(playerid,-1,"Welcome back! You have successfully logged in");// } else // {// ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_PASSWORD,"Login","Welcome back. This account is registered. \nInsert your password to login to your account.\nIncorrect password!","Login","Quit");//We will tell to them that they've entered an incorrect password return 1; } } return 1; }