Jump to content
  • 0

[/v] ID nu arata


cobalt_thekiller

Question

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
Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0
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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.