16.07.2011, 14:03
Here is the example:
pawn Код:
ShowPlayerDialog(playerid, DIALOG_AGE, DIALOG_STYLE_INPUT, "Your age", "Type in how old are you.", "Next", "Cancel"); // Show age dialog
case DIALOG_AGE: { // In the OnDialogResponse callback
if (response) {
PlayerInfo[playerid][pAge] = strval(inputtext); // Your variable to save player's age
// Here you write player's age in his file
if (INI_Open(getINI(playerid))) INI_WriteInt("Age", strval(inputtext));
INI_Save();
INI_Close();
} else Kick(playerid);
}