22.03.2017, 10:23
Quote:
Or you can do it properly instead of trying to hack around the problem. See the tutorial about storing vehicle mods in my signature.
|
Veh enum:
Code:
vehicle_component[14],
Code:
format(visual_tuning, sizeof(visual_tuning), "%d %d %d %d %d %d %d %d %d %d %d %d %d %d", comp0, comp1, comp2, comp3, comp4, comp5, comp6, comp7,comp8, comp9, comp10, comp11, comp12, comp13); mysql_query(mySQLconnection, sprintf("UPDATE vehicles SET vehicle_component = '%s' WHERE vehicle_uid = %d", visual_tuning, Vehicle[vehid][vehicle_uid]));
Code:
new tmp_comp[70]; cache_get_row(row, 24, tmp_comp); sscanf(tmp_comp, "a<d>[12]", Vehicle[vid][vehicle_component]);