[Problem]Car colors
#1

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".
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);
}

But this is not working.
Reply
#2

pawn Код:
if(clickedid == SSelectDreapta[playerid])
{
    new color2;
    ChangeVehicleColor(IDmasina[playerid], color1 +1, color2);
    print("Debug: First check called.")
}
if(clickedid == SSelectStanga[playerid])
{
    new color2;
    ChangeVehicleColor(IDmasina[playerid], color1 -1, color2);
    print("Debug: Third check called.")
}
if(clickedid == SSelectDDreapta[playerid])
{
    new color1;
    ChangeVehicleColor(IDmasina[playerid], color1, color2 +1);
    print("Debug: Fourth check called.")
}
if(clickedid == SSelectSStanga[playerid])
{
    new color1;
    ChangeVehicleColor(IDmasina[playerid], color1, color2 -1);
    print("Debug: Fifth check called.")
}
Place this code and tell me if any of those prints show anything on your console.
Reply
#3

SOLVED
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)