Finding out a players age
#1

Alright i have my login and register code done but im unsure how to continue on from that to make my code find the age of the player could anyone help? im sure it would be just in the register place so heres my register part.

Код:
case DIALOG_REGISTER:
        {
            if (!response) return Kick(playerid);
            if (response)
            {
                if(!strlen(inputtext)) {
                ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT, ""WHITE"Registering",""RED"You have entered an invalid password.\n"WHITE"Type your password below to register a new account.","Register","Quit");
                }

                if(INI_Open(getINI(playerid))) {
                INI_WriteString("pass", inputtext);
				INI_WriteInt("Age", strval(inputtext));
				INI_WriteInt("Cash", StartingCash);
				INI_WriteInt("Score",1);
				INI_WriteInt("Kills", 0);
				INI_WriteInt("Deaths", 0);
				INI_WriteInt("Timeplayed", 0);
				INI_WriteString("Ipaddress", "NEEDS SETTING");
				INI_WriteString("Saveposition", "NEEDS SETTING");
				INI_WriteInt("Admin", 0);
				INI_WriteInt("Faction", 0);
				INI_WriteInt("Faction", 0);
				INI_WriteInt("Bankdeposit", 0);
				INI_WriteInt("Banned", 0);
				INI_WriteString("Banreason", "");
				INI_WriteInt("House", 0);
				INI_WriteInt("Biz", 0);
				INI_WriteInt("Fightstyle", 0);
                INI_Save();
                INI_Close();

                ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,""WHITE"Login",""WHITE"Type your password below to login.","Login","Quit");
            }
        }
    }
Thanks for any help given
REGARDS MATTHEW
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: 5 Guest(s)