Input line too strong
#6

Quote:
Originally Posted by Vince
View Post
Or you can do it properly instead of trying to hack around the problem. See the tutorial about storing vehicle mods in my signature.
Doing it by string field is easier. No need to create new table.

Veh enum:

Code:
vehicle_component[14],
Saving:

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]));
Loading:

Code:
new tmp_comp[70];
cache_get_row(row, 24, tmp_comp);	
sscanf(tmp_comp, "a<d>[12]", Vehicle[vid][vehicle_component]);
Reply


Messages In This Thread
Input line too strong - by penaut - 21.03.2017, 19:25
Re: Input line too strong - by Mencent - 21.03.2017, 19:39
Re: Input line too strong - by penaut - 21.03.2017, 20:26
Re: Input line too strong - by Mencent - 21.03.2017, 21:04
Re: Input line too strong - by Vince - 22.03.2017, 09:15
Re: Input line too strong - by raydx - 22.03.2017, 10:23

Forum Jump:


Users browsing this thread: 3 Guest(s)