Dialog problem - 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)
+--- Thread: Dialog problem (
/showthread.php?tid=314290)
Dialog problem -
Scott_Williams - 29.01.2012
I changed the register DIALOG_STYLE_LIST in DIALOG_STYLE_MSGBOX (gender choice) now if I push the female the dialog that disappears because before dialog showing this: DIALOG_STYLE_LIST was
Код:
ShowPlayerDialog(playerid, 4, DIALOG_STYLE_LIST, "Intrebarea nr.1", "Male\nFemale","Enter", "Cancel");
and now is
Код:
ShowPlayerDialog(playerid,4,DIALOG_STYLE_MSGBOX,"{FFFFCC}Gen", "{FFFFFF}Esti de sex {FFFFCC}masculin {FFFFFF}sau {FFFFCC}feminim{FFFFFF} te rugam alege mai jos.","Male","Female");
how to do that when I push the female give me the next step in the registration dialog not disappear?
Re: Dialog problem -
Littlehelper - 29.01.2012
pawn Код:
ShowPlayerDialog(playerid,4, DIALOG_STYLE_BLAH, "BLAH nr.BLAH", "BLAHBLAH","BLAH", "BLAH"):
And
pawn Код:
ShowPlayerDialog(playerid,4+1,DIALOG_STYLE_BLAH, "BLAH","BLAH","BLAH");
Hope Thats It...
Re: Dialog problem -
Konstantinos - 29.01.2012
You can select only on
Re: Dialog problem -
Scott_Williams - 29.01.2012
Dwane I have seen on other servers so
Re: Dialog problem -
Konstantinos - 29.01.2012
It's impossible to select on
DIALOG_STYLE_MSGBOX the text only on a list.
The only way is to click on buttons
pawn Код:
First Button (response) -> Male
Second Button (!response -> Female
Re: Dialog problem -
Scott_Williams - 29.01.2012
Look:
Re: Dialog problem -
Konstantinos - 29.01.2012
I already mention above. You click on buttons and choose, you don't click on text "Esti de gen masculin sau feminin ?"
Re: Dialog problem -
Scott_Williams - 29.01.2012
I push those buttons
Re: Dialog problem -
MSI - 29.01.2012
#define DIALOG_DIALOG 123 is easyer
Re: Dialog problem -
Konstantinos - 29.01.2012
pawn Код:
#define DIALOG_GEN 8000
// On Register
ShowPlayerDialog(playerid,DIALOG_GEN,DIALOG_STYLE_MSGBOX,"{FFFFCC}Gen", "{FFFFFF}Esti de sex {FFFFCC}masculin {FFFFFF}sau {FFFFCC}feminim{FFFFFF} te rugam alege mai jos.","Male","Female");
// OnDialogResponse
switch( dialogid )
{
case DIALOG_GEN:
{
switch( listitem )
{
case 0:
{
// Code for Button 1
}
case 1:
{
// Code for Button 2
}
}
}
}