Dialog problem
#1

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");
Reply
#2

EDIT: nvm.. i misunderstood the question...
Reply
#3

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);
        }
    }
}
Reply
#4

But why are you using if(!response) and else when there is only one "Okay" in the dialog?
Reply
#5

Where did you show the gender dialog?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)