DIALOG_STYLE_MSGBOX -
God'Z War - 26.06.2012
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
Re: DIALOG_STYLE_MSGBOX -
Dan_Barocu - 26.06.2012
show us code?
Re: DIALOG_STYLE_MSGBOX -
Shouty - 26.06.2012
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;
}
Re: DIALOG_STYLE_MSGBOX -
Dan_Barocu - 26.06.2012
he doesent need "DIALOG_STYLE_MSGBOX" at OnDialogResponse..
Re: DIALOG_STYLE_MSGBOX -
God'Z War - 26.06.2012
Код:
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
Re: DIALOG_STYLE_MSGBOX -
milanosie - 26.06.2012
Quote:
Originally Posted by Dan_Barocu
he doesent need "DIALOG_STYLE_MSGBOX" at OnDialogResponse..
|
Lol ofcourse he does, he is showing a new dialog.
Re: DIALOG_STYLE_MSGBOX -
Shouty - 26.06.2012
Use my one. It will work 100%
Re: DIALOG_STYLE_MSGBOX -
God'Z War - 26.06.2012
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
Re: DIALOG_STYLE_MSGBOX -
Dan_Barocu - 26.06.2012
my gm doesent need when it is MSG_BOX..
Re: DIALOG_STYLE_MSGBOX -
Shouty - 26.06.2012
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.