Dialog help
#5

Under OnDialogResponse(playerid, ...):

Код:
(YOUR_DIALOG_ID):
{
	if(!response) return Kick(playerid);
	if(response)
	{
		new length; //defining a variable
		length = strlen(inputtext); // storing the length of the inputtext(password)
		if(strfind(inputtext, "A", false, length)) //checks if the password contains letter "A" at last
		{
		// your code e.g Kick(playerid);
		}
		else if(strfind(inputtext, "B", false, length)) //checks if the password contains letter "B" at last
		{
		// your code e.g Kick(playerid);
		}
		else if(strfind(inputtext, "C", false, length)) //checks if the password contains letter "C" at last
		{
		// your code e.g Kick(playerid);
		}
		//.... so on
	}
}
Ask if you need more help, and don't forget to rep++ me - Regards Noob Programmer Akbaig
Reply


Messages In This Thread
Dialog help - by _GHT_MarK445 - 08.01.2016, 21:05
Re: Dialog help - by Elegy - 09.01.2016, 03:47
Re: Dialog help - by fuckingcruse - 09.01.2016, 06:07
Re: Dialog help - by _GHT_MarK445 - 09.01.2016, 11:22
Re: Dialog help - by Akbaig - 09.01.2016, 21:18
Re: Dialog help - by PrO.GameR - 09.01.2016, 21:34
Re: Dialog help - by _GHT_MarK445 - 11.01.2016, 12:32
Re: Dialog help - by _GHT_MarK445 - 14.01.2016, 20:13
Re: Dialog help - by Eth - 14.01.2016, 20:57
Re: Dialog help - by _GHT_MarK445 - 14.01.2016, 23:46

Forum Jump:


Users browsing this thread: 2 Guest(s)