PDA

View Full Version : Dialog problem


San1
23/06/2012, 02:36 AM
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 ShowPlayerDialog(playerid, DIALOG_AGE, DIALOG_STYLE_INPUT, "What is your Age", "Enter your Age Below 16-99", "Ok", "");

Age dialog response
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
ShowPlayerDialog(playerid, DIALOG_GENDER, DIALOG_STYLE_MSGBOX, "Are you a Male or Female", "Select Your Gender", "Male", "Female");

Littlehelper
23/06/2012, 04:30 AM
EDIT: nvm.. i misunderstood the question...

[NWA]Hannes
23/06/2012, 04:36 AM
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);
}
}
}

Littlehelper
23/06/2012, 04:38 AM
But why are you using if(!response) and else when there is only one "Okay" in the dialog?

[MM]RoXoR[FS]
23/06/2012, 04:48 AM
Where did you show the gender dialog?