Loading system failing
#9

Now about the money and the skin, you'll have to set them after you confirm that the password is correct.
Something like:
Код:
case DIALOG_LOGIN:
		{
			if(!response)
				return Kick(playerid);
			else
			{
				if(!strlen(inputtext))
					return ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD, "Server - Login", "Wrong password\nTry again!", "Login", "Exit");
				if(PlayerInfo[playerid][pPass] == udb_hash(inputtext))
				{
					GivePlayerMoney(playerid, PlayerInfo[playerid][Cartera]);
					SetPlayerSkin(playerid, PlayerInfo[playerid][Skin]);
					//Other part of your code
				}
				else
					return ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD, "Server - Login", "Wrong password\nTry again!", "Login", "Exit");
			}
		}
Reply


Messages In This Thread
Loading system failing - by Antenastyle - 19.05.2017, 17:33
Re: Loading system failing - by Aly - 19.05.2017, 17:39
Re: Loading system failing - by Antenastyle - 19.05.2017, 17:50
Re: Loading system failing - by Aly - 19.05.2017, 18:33
Re: Loading system failing - by Vince - 19.05.2017, 18:56
Re: Loading system failing - by Antenastyle - 19.05.2017, 21:37
Re: Loading system failing - by Aly - 19.05.2017, 22:52
Re: Loading system failing - by Antenastyle - 20.05.2017, 11:16
Re: Loading system failing - by Aly - 20.05.2017, 11:24
Re: Loading system failing - by Antenastyle - 20.05.2017, 11:45

Forum Jump:


Users browsing this thread: 2 Guest(s)