DIALOG_STYLE_MSGBOX
#1

Hi Guys,
i have a small problem. i added 2 DIALOG_STYLE_MSGBOX in onplayerconnect but only 1 is comming
while i am listening to screen i saw 2 DIALOG_STYLE_MSGBOX loaded but when another one loaded it disappear.
what i want to do to load 2 one in onplayerconnect when 1 DIALOG_STYLE_MSGBOX finish another DIALOG_STYLE_MSGBOX should come
Reply
#2

show us code?
Reply
#3

Use :


Frist dialog:
Код:
public OnPlayerConnect(playerid)
{
	ShowPlayerDialog(playerid,1,DIALOG_STYLE_MSGBOX,"Blah bla","Pfffff","Ok","Bye");
	return 1;
}
Second Dialog:
Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
	if(dialogid == 1 && response)
	  {
	  ShowPlayerDialog(playerid,2,DIALOG_STYLE_MSGBOX,"Pfff","Pffffffffffff","Ok","Exit");
	  }
	return 1;
}
Reply
#4

he doesent need "DIALOG_STYLE_MSGBOX" at OnDialogResponse..
Reply
#5

Код:
	ShowPlayerDialog(playerid, DIALOGID0+31, DIALOG_STYLE_MSGBOX, "{46BEE6}Server Rules:", "__________________________________________________________________________________", "I Agree", "I Disagree");
 	ShowPlayerDialog(playerid, 9, DIALOG_STYLE_MSGBOX, "{46BEE6}Server Credits:", "________________________________________________________________________________________", "Ohkey", "Close");
This Is Code
Reply
#6

Quote:
Originally Posted by Dan_Barocu
Посмотреть сообщение
he doesent need "DIALOG_STYLE_MSGBOX" at OnDialogResponse..
Lol ofcourse he does, he is showing a new dialog.
Reply
#7

Use my one. It will work 100%
Reply
#8

Quote:
Originally Posted by Shouty
Посмотреть сообщение
Use :


Frist dialog:
Код:
public OnPlayerConnect(playerid)
{
	ShowPlayerDialog(playerid,1,DIALOG_STYLE_MSGBOX,"Blah bla","Pfffff","Ok","Bye");
	return 1;
}
Second Dialog:
Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
	if(dialogid == 1 && response)
	  {
	  ShowPlayerDialog(playerid,2,DIALOG_STYLE_MSGBOX,"Pfff","Pffffffffffff","Ok","Exit");
	  }
	return 1;
}
Its About 1 dialog Whats About 2 Dialog
Reply
#9

my gm doesent need when it is MSG_BOX..
Reply
#10

Quote:
Originally Posted by God'Z War
Посмотреть сообщение
Its About 1 dialog Whats About 2 Dialog
Man.
When player connects a dialog will show. If he response (frist button ) another dialog will be show.

Sorry for my english.
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)