Dialog Disappears
#1

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
Reply
#2

Here:

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

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!");
			}
		}
	}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)