03.01.2013, 00:17
Use mysql_insert_id() to get the most recently inserted auto increment id after inserting the row.
Your original post has very awkward wording.
pawn Code:
new g_vehSQLids[MAX_VEHICLES];
mysql_query(...);
g_vehSQLids[vehicleid] = mysql_insert_id();