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=353362)
Dialog problem -
San1 - 23.06.2012
this dialog is all fixed and brackets work but it wont show after this gender dialog
and im very very sure its in the correct spot to show the dialog on register
and the dialog id is not conflicting with others
and the gender dialogs works
age dialog
Code:
ShowPlayerDialog(playerid, DIALOG_AGE, DIALOG_STYLE_INPUT, "What is your Age", "Enter your Age Below 16-99", "Ok", "");
Age dialog response
Code:
if(dialogid == DIALOG_AGE)
{
if(!response)
{
ShowPlayerDialog(playerid, DIALOG_AGE, DIALOG_STYLE_INPUT, "What is your Age", "Enter your Age Below 16-99", "Ok", "");
}
if(!(strval(inputtext) >= 16 && strval(inputtext) <= 99))
{
PlayerInfo[playerid][pAge] = strval(inputtext);
}
return 1;
}
Gender Dialog
Code:
ShowPlayerDialog(playerid, DIALOG_GENDER, DIALOG_STYLE_MSGBOX, "Are you a Male or Female", "Select Your Gender", "Male", "Female");
Re: Dialog problem -
Littlehelper - 23.06.2012
EDIT: nvm.. i misunderstood the question...
Re: Dialog problem -
[NWA]Hannes - 23.06.2012
pawn Code:
if(dialogid == DIALOG_AGE)
{
if(!response)
{
ShowPlayerDialog(playerid, DIALOG_AGE, DIALOG_STYLE_INPUT, "What is your Age", "Enter your Age Below 16-99", "Ok", "");
}
else
{
if(strval(inputtext) >= 16 && strval(inputtext) <= 99))
{
PlayerInfo[playerid][pAge] = strval(inputtext);
}
}
}
Re: Dialog problem -
Littlehelper - 23.06.2012
But why are you using if(!response) and else when there is only one "Okay" in the dialog?
Re: Dialog problem -
[MM]RoXoR[FS] - 23.06.2012
Where did you show the gender dialog?