26.02.2011, 20:06
pawn Код:
if (dialogid == 5)
{
if(!response) return Kick(playerid);
new name[MAX_PLAYER_NAME], file[128];
GetPlayerName(playerid, name, sizeof(name));
format(file, sizeof(file), SERVER_USER_FILE, name);
new value = strval(inputtext);
if(value < 16 || value > 75)
{
SendClientMessage(playerid,COLOR_RED,"[URP] : You have to be at least 16 years old And not oled then 75 old");
return ShowPlayerDialog(playerid, 5, DIALOG_STYLE_INPUT, "Please choose your age", "Please enter your age below", "Choose", "Cancel");
}
dini_IntSet(file,"Age",value);
}