08.02.2016, 19:21
WOW What a dumb code, instead of using those long ass cases, use a string parameter...
Example:
Done.
Example:
Код:
public vUpdate(vehicleid, type[]) { new gQuery[1024]; format(gQuery,sizeof(gQuery),"UPDATE `cars` SET `%e`='%f' WHERE `ID`='%d'", type, CarInfo[vehicleid][cLocationx],vehicleid) }