20.11.2011, 09:10
Basically for age whatever you put in you can have it so you can have age as 90000 or as Halbla or something
How can i limit this so you can only input numbers and between 7 and 80?
How can i limit this so you can only input numbers and between 7 and 80?
pawn Код:
new age;
age = strval(inputtext);
if(age < 80 || age > 7)
{
PlayerInfo[playerid][pAge] = age;
RegistrationStep[playerid] = 3;
HidePlayerDialog(playerid);
ShowPlayerDialog(playerid, 1501, DIALOG_STYLE_LIST, "Where you from?", "{FF0000} - USA\n{37DB45} - Europe\n{15D4ED} - Other", "Ok", "");
}
else
{
HidePlayerDialog(playerid);
ShowPlayerDialog(playerid, 1500, DIALOG_STYLE_INPUT, "Age", "Input the correct age.", "Ok", "");
}