28.11.2015, 20:43
If you want to insert the SQL ID, wouldn't you then use
instead of
since lastveh is the current server vehicle id? (as taken from your OnVehicleCreation thing)
Also this line wouldn't work, since your function "OnVehicleCreation" doesn't have extra arguments. For this line to work it would be "public OnVehicleCreation(playerid)" while it is "public OnVehicleCreation()"
PHP код:
VehInfo[veh][VID] = cache_insert_id(); // problematic line
PHP код:
VehInfo[vehicleid][VID] = lastveh; // problematic line
Also this line wouldn't work, since your function "OnVehicleCreation" doesn't have extra arguments. For this line to work it would be "public OnVehicleCreation(playerid)" while it is "public OnVehicleCreation()"
PHP код:
mysql_tquery(mysql, query, "OnVehicleCreation", "i", playerid);