Jump to content
  • 0

[Problema]Culori Car


angel

Question

Problema intalnita (descriere): Am incercat sa fac ca culoarea masini sa se schimbe de la 0 pana la 255 apasand un button dreapta,si cand dai butonul stanga sa coboare la 254,253...etc
Ero(area / rile) / warning-(ul / urile): -
Liniile de cod / sursa / script-ul(obligatoriu):

 

ChangeVehicleColor(vehid, colorid, 1+2);
ChangeVehicleColor(vehid, colorid, colorid2+2);

Imagini / Video (optional): Nu cred ca e nevoie,deoarece nu functioneaza deloc
Ati incercat sa rezolvati singur?: Da

Edited by angel
  • Upvote 1

Daca ti-am fost de ajutor +1 Respect!Multumesc

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

Sunt textdraw-uri "<" si ">"  pentru culoarea 1 si "<" ">" pentru culoarea 2.Cand dau click pe ele imi da o singura culoare..

if(clickedid == SSelectDreapta[playerid])
    {
        new colorid;
        if(colorid > 0 || colorid < 255)
        {
            new car = GetPlayerVehicleID(playerid);
            ChangeVehicleColor(IDmasina[playerid], 1+5, colorid);
            vUpdate(OwnedVeh(car), cColorOnex);
        }
     }
    if(clickedid == SSelectStanga[playerid])
    {
         new colorid;
        if(colorid > 0 || colorid < 255)
        {
            new car = GetPlayerVehicleID(playerid);
            ChangeVehicleColor(IDmasina[playerid], 1-2, colorid);
            vUpdate(OwnedVeh(car), cColorOnex);
        }
     }
    if(clickedid == SSelectDDreapta[playerid])
    {
         new colorid;
        if(colorid > 0 || colorid < 255)
        {
            new car = GetPlayerVehicleID(playerid);
            ChangeVehicleColor(IDmasina[playerid], colorid, 1+2);
            vUpdate(OwnedVeh(car), cColorTwox);
        }
     }
    if(clickedid == SSelectSStanga[playerid])
    {
         new colorid;
        if(colorid > 0 || colorid < 255)
        {
            new car = GetPlayerVehicleID(playerid);
            ChangeVehicleColor(IDmasina[playerid], colorid, 1-1);
            vUpdate(OwnedVeh(car), cColorTwox);
         }
     }

Daca ti-am fost de ajutor +1 Respect!Multumesc

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.