03.04.2012, 12:17
pawn Код:
stock GetDate(timestamp)
{
new query[300];
format(query, sizeof(query), "SELECT FROM_UNIXTIME(UNIX_TIMESTAMP(%d),'%D %M %Y %h:%i')", timestamp);
mysql_query(query);
mysql_store_result();
if(mysql_num_rows() > 0)
{
format(query, sizeof(query), "%s", timestamp);
}
mysql_free_result();
return 1;
}