SA-MP Forums Archive
[Problem]Car colors - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [Problem]Car colors (/showthread.php?tid=566098)



[Problem]Car colors - duteba - 03.03.2015

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.


Re: [Problem]Car colors - maramizo - 03.03.2015

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.


Re: [Problem]Car colors - duteba - 03.03.2015

SOLVED