Dialog help
#8

Hey guys, we just tested it and a problem has occured. When player writes anything to the dialog and confirms it (he uses it) it kicks him out.

Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) // dialogid 1
{
    if(dialogid == 1)
	{
		if(response)
		{
			new length;
			length = strlen(inputtext);
			if(strfind(inputtext, "A", false, length))
			{
			    ShowPlayerDialog(playerid, 4577877, DIALOG_STYLE_MSGBOX, "Ochrana", "{FFFFFF}Kvůli ochraně serveru, heslo nemůћe obsahovat velkб pнsmena.", "Ok", "");
				SetTimerEx("KickPlayer",100,false,"i",playerid);
			}
			else if(strfind(inputtext, "B", false, length))
			{
			    ShowPlayerDialog(playerid, 4577877, DIALOG_STYLE_MSGBOX, "Ochrana", "{FFFFFF}Kvůli ochraně serveru, heslo nemůћe obsahovat velkб pнsmena.", "Ok", "");
				SetTimerEx("KickPlayer",100,false,"i",playerid);
			}
			else if(strfind(inputtext, "C", false, length))
			{
			    ShowPlayerDialog(playerid, 4577877, DIALOG_STYLE_MSGBOX, "Ochrana", "{FFFFFF}Kvůli ochraně serveru, heslo nemůћe obsahovat velkб pнsmena.", "Ok", "");
				SetTimerEx("KickPlayer",100,false,"i",playerid);
			}
			else if(strfind(inputtext, "D", false, length))
			{
			    ShowPlayerDialog(playerid, 4577877, DIALOG_STYLE_MSGBOX, "Ochrana", "{FFFFFF}Kvůli ochraně serveru, heslo nemůћe obsahovat velkб pнsmena.", "Ok", "");
				SetTimerEx("KickPlayer",100,false,"i",playerid);
			}
			else if(strfind(inputtext, "E", false, length))
			{
			    ShowPlayerDialog(playerid, 4577877, DIALOG_STYLE_MSGBOX, "Ochrana", "{FFFFFF}Kvůli ochraně serveru, heslo nemůћe obsahovat velkб pнsmena.", "Ok", "");
				SetTimerEx("KickPlayer",100,false,"i",playerid);
			}
			else if(strfind(inputtext, "F", false, length))
			{
			    ShowPlayerDialog(playerid, 4577877, DIALOG_STYLE_MSGBOX, "Ochrana", "{FFFFFF}Kvůli ochraně serveru, heslo nemůћe obsahovat velkб pнsmena.", "Ok", "");
				SetTimerEx("KickPlayer",100,false,"i",playerid);
			}
		}
	}
	return 1;
}
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: 1 Guest(s)