26.02.2011, 19:58
Suppossing your using dialogs with inputtext, 'response' should be inputtext[0], this is probably the right code.
Ain't I right?
pawn Код:
if (dialogid == 5)
{
new name[MAX_PLAYER_NAME], file[256];
GetPlayerName(playerid, name, sizeof(name));
format(file, sizeof(file), SERVER_USER_FILE, name);
if(!response) return Kick(playerid);
if(inputtext[0] > 15 && inputtext[0] < 76)
{
dini_IntSet(file,"Age",response);
}
if(inputtext[0] < 16 || inputtext[0] > 75) return SendClientMessage(playerid,COLOR_RED,"[URP] : You have to be at least 16 years old And not oled then 75 old"), ShowPlayerDialog(playerid, 5, DIALOG_STYLE_INPUT, "Please choose your age", "Please enter your age below", "Choose", "Cancel");
}