Quote:
Originally Posted by iGetty
Simply do this:
pawn Код:
//top of script new PlayerAge[MAX_PLAYERS];
public OnPlayerConnect(playerid) { ShowPlayerDialog(playerid, 1, DIALOG_STYLE_INPUT, "Age", "Please define your age below:", "Ok", "Cancel"); return 1; }
public OnDialogResponse(playerid, dialogid, ...) { if(dialogid == 1) { if(response) { PlayerAge[playerid] = strval(inputtext); } } return 1; }
|
i want to restrict the age,i need to make if inputtext > 12 , <39