03.03.2015, 15:49
Hi, i have a dealership and i try to make when the player click ">" textdraw to change the color to "red" for example,then if he press again to "blue".Then if he press "<" back textdraw button to go back to previous color "red".
But this is not working.
Quote:
if(clickedid == SSelectDreapta[playerid]) { new color2; ChangeVehicleColor(IDmasina[playerid], color1 +1, color2); } if(clickedid == SSelectStanga[playerid]) { new color2; ChangeVehicleColor(IDmasina[playerid], color1 -1, color2); } if(clickedid == SSelectDDreapta[playerid]) { new color1; ChangeVehicleColor(IDmasina[playerid], color1, color2 +1); } if(clickedid == SSelectSStanga[playerid]) { new color1; ChangeVehicleColor(IDmasina[playerid], color1, color2 -1); } |