03.04.2015, 09:34
Quote:
There are many bugs in this..
-Firstly make sure that id field is AUTO_INCREMENT -AddStaticVehicleEx can only be used in OnGameModeInit, use CreateVehicle Instead.. -Why are you using cache_get_field_content in case THREAD_CREATE_PVEH.. cache_get_field_content will only work with SELECT type of query and case THREAD_CREATE_PVEH is being used with INSERT INTO type of query. You have to run another query from inside of case THREAD_CREATE_PVEH and put the cache_get_field_content code inside the callback which is called from it. |
So
1. Insert data
2. Grab car_ID from that newly created row
3. Use data straight away