Ban List Questions
#7

using day-month-year not second-minute-hour, it makes more sense
pawn Код:
stock CreateBan(playerid)
{
    new query[128],name[MAX_PLAYER_NAME]+1;
    GetPlayerName(playerid, name, sizeof(name));
    new Year, Month, Day;
    getdate(Year, Month, Day);
    format(query, sizeof(query),"INSERT INTO `bans` (`name`, `dob`) VALUES ('%s', '%02d-%02d-%02d');",name,Day,Month,Year);
    mysql_query(query);
    return 1;
}
Reply


Messages In This Thread
Ban List Questions - by ScottCFR - 04.08.2010, 16:58
Re: Ban List Questions - by WackoX - 04.08.2010, 17:22
Re: Ban List Questions - by ScottCFR - 04.08.2010, 17:41
Re: Ban List Questions - by Carlton - 04.08.2010, 17:55
Re: Ban List Questions - by [NoV]LaZ - 04.08.2010, 17:59
Re: Ban List Questions - by ScottCFR - 04.08.2010, 18:05
Re: Ban List Questions - by Daren_Jacobson - 04.08.2010, 18:09
Re: Ban List Questions - by ScottCFR - 04.08.2010, 18:10
Re: Ban List Questions - by Daren_Jacobson - 04.08.2010, 18:13
Re: Ban List Questions - by ScottCFR - 04.08.2010, 18:25

Forum Jump:


Users browsing this thread: 1 Guest(s)