22.12.2015, 10:59
Why is this not saving?
Код:
public OnPlayerSpray(playerid) { if(pick == 1) { //new color = colort; ChangeVehicleColor(vehid, colort, 0); VehicleColor[playerid][0] = colort; } else { new pID; //new color2=color; pID = Requested[playerid]; ChangeVehicleColor(vehid, 0, colort); VehicleColor[playerid][1] = colort; KillTimer(SprayT); //Spray[pID] = 0; //Spray[playerid] = 0; Service[pID][0] = 0; Service[playerid][0] = 0; SaveVehicle(playerid); SendClientMessage(playerid, COLOR_GREEN, "Ai vopsit masina cu succes!"); } return 1; }