21.01.2011, 16:39
Hey so, heres the ShowPlayerDialog:
Heres the response:
When I enter my age for ex. 21 then it returns nothing and doesent show me the dialog id 73. Any help?
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");
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");
}
}