Dialog doesent do anything?
#1

Hey so, heres the ShowPlayerDialog:

pawn Код:
ShowPlayerDialog(playerid, 72, DIALOG_STYLE_INPUT, "Registration", "Your gender has been set to male.\nPlease enter your desired age\nPlease use the ages between 16-99", "Continue", "Kick me");
Heres the response:
pawn Код:
if(dialogid == 72)
    {
      if(!response)
      {
         ShowPlayerDialog(playerid, 72, DIALOG_STYLE_INPUT, "Registration", "Please enter your desired age\nPlease use the ages between 16-99", "Continue", "Kick me");
      }
      if(!(strval(inputtext) >= 16 && strval(inputtext) <= 99))
      {
         PlayerInfo[playerid][pAge] = strval(inputtext);
         ShowPlayerDialog(playerid,73,DIALOG_STYLE_LIST,"How did you arrive into Los Santos?","Train\nPlane\nBoat\nCar","Select", "Kick");
         return 1;
      }
      else
      {
         ShowPlayerDialog(playerid, 72, DIALOG_STYLE_INPUT, "Registration", "Please enter your desired age\nPlease use the ages between 16-99", "Continue", "Kick me");
      }
    }
When I enter my age for ex. 21 then it returns nothing and doesent show me the dialog id 73. Any help?
Reply
#2

pawn Код:
if(strval(inputtext) > 15 && strval(inputtext) < 100)
Reply
#3

Yep, as "Realcop228" said. You did if(! (which means "If NOT").
Reply
#4

Still doesent work, shows me nothing.
Reply
#5

I'm not sure how much this will do, but try removing the return in this:

pawn Код:
if(strval(inputtext) > 15 && strval(inputtext) < 100)
      {
         PlayerInfo[playerid][pAge] = strval(inputtext);
         ShowPlayerDialog(playerid,73,DIALOG_STYLE_LIST,"How did you arrive into Los Santos?","Train\nPlane\nBoat\nCar","Select", "Kick");
         return 1;
      }
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)