01.12.2018, 00:55
Код HTML:
db_query(Database, "CREATE TABLE IF NOT EXISTS `Reports` (`ID`, `Reporter`, `Target`, `Reason`, `Timestamp`)");
Код HTML:
format(Query, sizeof(Query), "INSERT INTO `Reports` (`ID`, `Reporter`, `Target`, `Reason`, `Timestamp`) VALUES('%i', '%s','%s','%s','%s')", db_get_field_int(Result), DB_Escape(GetName(playerid)), DB_Escape(GetName(target)), DB_Escape(reason), DB_Escape(timestamp));