25.07.2015, 19:40
PHP код:
stock AdminLog(playerid,playerb,tegevus[],p6hjus[])
{
new Query[250],hour,minute,second,year,month,day;
getdate(year,month,day);
gettime(hour,minute,second);
format(Query,sizeof Query,"INSERT INTO `admin_logs` (`Admin`,`Player`,`Tegevus`,`Pхhjus`,`Kuu`,`Kell`) VALUES ('%s','%s','%s','%s','%d/%d/%d','%d:%d:%d')",
RPN(playerid),RPN(playerb),tegevus,p6hjus,month,day,year,hour,minute,second);
mysql_query(Query);
return 1;
}
- Mencent