Jump to content

Question

Posted (edited)

Salut incerc sa adaug la [/v] sa arate id ul masinii si nush dc tot apare 0.

strcat(szDialog, "Vehicul\tID\tStatus\tDespawn Time\tOthers details\n");
    foreach(MyVehicle[playerid], car) {
        format(szDialog, sizeof(szDialog), "%s%s\t%d\t%s\t%s\t%s\n", szDialog, aVehicleNames[CarInfo[car][cModel]-400], CarInfo[vsid][Spawned], CarInfo[car][Spawned] != 0 ? IsVehicleOccupied(CarInfo[car][Spawned]) ? ("{FFFF00}[occupied]") : ("{26B309}[spawned]") : ("{FF0000}[despawned]"), CheckDespawnCar(car), TotalUp(car));
        PlayerInfo[playerid][pCarKey][x] = car;
        x++;
    }

image.png.e13c0af76040e725cec4f9470ab70f09.png

Edited by cobalt_thekiller

5 answers to this question

Recommended Posts

  • 0
Posted
Just now, kellerman21 said:

cel mai prost sistem de masini creat vreodata, poti sa-l stergi si sa-ti faci altul de la 0

pai nu prea stiu... 

stock ShowPlayerVehicle(playerid, bool: type) {
    new szTitle[60], vsid, szDialog[3000], x = 0;
    if(Iter_Count(MyVehicle[playerid]) == 0) return SCM(playerid, COLOR_LGREEN, "Eroare: Nu ai un vehicul personal!");
    format(szTitle, sizeof(szTitle), "Your Vehicles {E3DE31}%d/%d", Iter_Count(MyVehicle[playerid]), GetSlots(playerid));
    strcat(szDialog, "Vehicul\tID\tStatus\tDespawn Time\tOthers details\n");
    foreach(MyVehicle[playerid], car) {
        format(szDialog, sizeof(szDialog), "%s%s\t%d\t%s\t%s\t%s\n", szDialog, aVehicleNames[CarInfo[car][cModel]-400],  CarInfo[vsid][Spawned], CarInfo[car][Spawned] != 0 ? IsVehicleOccupied(CarInfo[car][Spawned]) ? ("{FFFF00}[occupied]") : ("{26B309}[spawned]") : ("{FF0000}[despawned]"), CheckDespawnCar(car), TotalUp(car));
        PlayerInfo[playerid][pCarKey][x] = car;
        x++;
    }
    ShowPlayerDialog(playerid, type ? DIALOG_STICKET : DIALOG_GARAGE, DIALOG_STYLE_TABLIST_HEADERS, szTitle, szDialog, "Ok", "Exit");
    return true;
}

Asta este tot codul

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.