04.08.2010, 17:55
pawn Код:
stock CreateBan(playerid)
{
new query[128],name[MAX_PLAYER_NAME]+1;
GetPlayerName(playerid, name, sizeof(name));
new Hour, Minute, Second;
gettime(Hour, Minute, Second);
format(query, sizeof(query),"INSERT INTO bans (name, dob) VALUES ('%s', %02d:%02d:%02d)",name,Hour, Minute, Second);
mysql_query(query);
return 1;
}