SA-MP Forums Archive
Dialog Disappears - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Dialog Disappears (/showthread.php?tid=155047)



Dialog Disappears - Cameltoe - 16.06.2010

Hi, i have a problem.. my Dialog keeps disappering.

// Dialogid define

Код:
#define DIALOG_HELP 5
// Dialog Answer
Код:
if(dialogid == DIALOG_HELP)
	{
		if(response)
		{
		}
	}
//the cmd
Код:
if(strcmp(cmd, "/help", true) == 0)
	{
		ShowPlayerDialog(playerid, DIALOG_HELP, DIALOG_STYLE_LIST, "Dialog", "Job Commands", "Ok", "Cancel");
		return 1;
	}
iv'e been trying and trying searching and searching with no answer.. thx a lot for all help


Re: Dialog Disappears - coole210 - 16.06.2010

Here:

Код:
if(listitem == 0) // Job Commands in list
{
//do something
}



Re: Dialog Disappears - Cameltoe - 16.06.2010

It's still closing itself.. -.-
Код:
if(dialogid == DIALOG_HELP)
	{
		if(response)
		{
			if(listitem == 0)
			{
		  SendClientMessage(playerid, green, "( ! ) Choosed list item 1!");
			}
			else if(listitem == 1)
			{
		  SendClientMessage(playerid, green, "( ! ) Choosed list item 2!");
			}
		}
	}