12.11.2010, 12:44
you miss understood
i use this code:
It inserts in the next sqlid, not in a free sqlid.
i use this code:
Код:
format(string, sizeof(string), "INSERT INTO business_products (BSQLID, ProductName, Stock, SellPrice) VALUES('%i', '%s', '%i', '%i')", OrderInfo[playerid][OrderDestID], GetProductName(OrderInfo[playerid][OrderID]), OrderInfo[playerid][OrderAmount] + ProductAmount, 9999999); mysql_query(string); mysql_query("SELECT MAX(SQLID) FROM business_products");