Age from DOB
#1

Hey, I was just wondering how can I get a age from DOB.

EXAMPLE: 12/05/2012 - 0 days old

12/05/2012 - 1 year old.

I need to know that from that exact format for my RP server. This way I can ask this in a dialog and convrt it to an age and update their age on that date
Reply
#2

pawn Код:
GetPlayersAge(playerid)
{
    new curDate[3];
    getdate(curDate[0], curDate[1], curDate[2]);
    return curDate[0] - PlayerInfo[playerid][pBornYear];
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)