Finding out a players age
#6

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);
}
Reply


Messages In This Thread
Finding out a players age - by slymatt - 16.07.2011, 12:50
Re: Finding out a players age - by Steve M. - 16.07.2011, 13:33
Re: Finding out a players age - by slymatt - 16.07.2011, 13:35
Re: Finding out a players age - by Steve M. - 16.07.2011, 13:36
Re: Finding out a players age - by slymatt - 16.07.2011, 13:44
Re: Finding out a players age - by Steve M. - 16.07.2011, 14:03
Re: Finding out a players age - by slymatt - 16.07.2011, 14:14

Forum Jump:


Users browsing this thread: 1 Guest(s)