Car color hack
#9

The variables are:
Код:
Vehicle[MAX_VEHICLES][Color1];
Vehicle[MAX_VEHICLES][Color2];
The function that saves the data in MySQL:
Код:
public OnVehicleRespray(playerid, vehicleid, color1, color2)
{
	Vehicle[VehicleIDX(vehicleid)][Color1] = color1;
	Vehicle[VehicleIDX(vehicleid)][Color2] = color2;
	mysql_format(dbHandle, query, sizeof(query), "UPDATE `Vehicles` SET `color1` = %i, `color2` = %i WHERE ID = '%d'", color1, color2, Vehicle[VehicleIDX(vehicleid)][ID]);
	mysql_tquery(dbHandle, query);
	return 1;
}
Reply


Messages In This Thread
Car color hack - by HidroDF - 12.02.2017, 18:44
Re: Car color hack - by Eoussama - 12.02.2017, 18:51
Re: Car color hack - by Luis- - 12.02.2017, 20:35
Re: Car color hack - by Spmn - 12.02.2017, 20:52
Re: Car color hack - by Luis- - 12.02.2017, 21:10
Re: Car color hack - by Aerotactics - 12.02.2017, 22:13
Re: Car color hack - by HidroDF - 13.02.2017, 09:55
Re: Car color hack - by Duco - 13.02.2017, 11:38
Respuesta: Car color hack - by HidroDF - 13.02.2017, 18:38

Forum Jump:


Users browsing this thread: 1 Guest(s)