15.12.2011, 17:49
example:
pawn Код:
mysql_query("SELECT MAX(vehicleid) FROM vehicles");
mysql_store_result();
new SQL[20];
mysql_fetch_row_format(SQL, "|");
new sqlid = strval(SQL);
mysql_free_result();
format(string, sizeof(string), "ALTER TABLE `vehicles` AUTO_INCREMENT =%i", sqlid);
mysql_query(string);