[HELP] 1 Error code
#5

found it under this


Код:
    if(dialogid == DIALOG_CHANGEPASS)
    {
        if (response == 0)
	    {
			return 1;
	    }
	    if (response == 1)
	    {
            if (strlen(inputtext)==0)
			{
		        SendClientMessage(playerid,COLOR_ERROR,"Please enter your desired password in the box.");
                ShowChangePassScreen(playerid);
				return 1;
			}
            udb_UserSetInt(PlayerName(playerid),"password_hash",udb_hash(inputtext));
            format(string,sizeof(string),"You have successfully changed your password to '%s', use this to login from now on.",inputtext);
			SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
            return true;
	    }
	    return 1;
    }
    if(dialogid == DIALOG_CHANGENAME)
    {
        if (response == 0)
	    {
			return 1;
	    }
	    if (response == 1)
	    {
            if (strlen(inputtext)==0)
			{
		        SendClientMessage(playerid,COLOR_ERROR,"Please enter your desired name in the box.");
                ShowChangeNameScreen(playerid);
				return 1;
			}
           new udb_RenameUser(PlayerName(playerid),inputtext);
            SetPlayerName(playerid,inputtext);
            format(string,sizeof(string),"You have successfully changed your name to '%s', use this to login from now on.",inputtext);
			SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
            return true;
	    }
	    return 1;
    }
	return 1;
}
Reply


Messages In This Thread
[HELP] 1 Error code - by Thoma - 09.01.2015, 20:17
Re: [HELP] 1 Error code - by bgedition - 09.01.2015, 20:36
Re: [HELP] 1 Error code - by Thoma - 09.01.2015, 21:38
Re: [HELP] 1 Error code - by CalvinC - 09.01.2015, 21:51
Re: [HELP] 1 Error code - by Thoma - 09.01.2015, 23:03

Forum Jump:


Users browsing this thread: 1 Guest(s)