25.04.2016, 03:07
Hello
i am trying to make a car system so i tried to save car color with yini i searched on samp forums and found some ways to save car color but didnt worked:
method 1:
but did not worked the color of car itself was not changing when i entered pay n spray so i tied this code:
but still same then i tried another method using this include link:
i put the code above in my car saving stock but still didnt work hope you guys will help me.
NOTE: OTHER DATA SAVES LIKE CAR OWNER AND POSITION
i am trying to make a car system so i tried to save car color with yini i searched on samp forums and found some ways to save car color but didnt worked:
method 1:
PHP Code:
public OnVehicleRespray(playerid, vehicleid, color1, color2)
{
VehicleInfo[vehicleid][vCol1] = color1;
VehicleInfo[vehicleid][vCol2] = color2;
return 1;
}
PHP Code:
public OnVehicleRespray(playerid, vehicleid, color1, color2)
{
VehicleInfo[vehicleid][vCol1] = color1;
VehicleInfo[vehicleid][vCol2] = color2;
ChangeVehicleColor(vehicleid, color1, color2);
return 1;
}
PHP Code:
new color1, color2;
GetVehicleColor(Vehicleid, color1, color2)
NOTE: OTHER DATA SAVES LIKE CAR OWNER AND POSITION