03.04.2015, 09:17
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.
-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.