Jump to content
  • 0

Question

Posted

Ba,am o problema cu /mycar. Cand scriu /mycar si aleg una din masini,imi apare numele altei masini la toate optiunile.

case PCar_D+3:
        {
              if(!response) return 1;
              //----------------------------------------------------------------
              new count = 0; eString[0] = EOS;
              //----------------------------------------------------------------
              for(new i = 0; i < MAX_CARS; i++)
              {
                if(Vehicles[i][VehicleCreated])
                {
                  if(!strcmp(Vehicles[i][VehicleOwner], PlayerName(playerid)))
                  {
                   if(count == listitem)
                   {
                      //--------------------------------------------------------
                      format(eString, sizeof(eString), "{FFFFFF}Manage your {00FF00}%s!", VehicleNames[Vehicles[i][VehicleModel] - 400]);
                      SPD(playerid, PCar_D+4, DIALOG_STYLE_LIST, eString, "{FFFFFF}Get vehicle\n{FF0000}Set car - spawn\n{FFFFFF}Change car color 1\n{FFFFFF}Change car color 2\n{FF0000}Change car plate", "Choose", "Back");
                      //--------------------------------------------------------
                   }
                   else
                   {
                      count++;
                   }
                  }
                }
              }
        }

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • 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.