cobalt_thekiller Posted November 21, 2020 Posted November 21, 2020 (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++; } Edited November 21, 2020 by cobalt_thekiller
0 Serban Posted November 21, 2020 Posted November 21, 2020 Ai luat ID-ul vehiculului din baza de date?
0 cobalt_thekiller Posted November 21, 2020 Author Posted November 21, 2020 3 minutes ago, Serban said: Ai luat ID-ul vehiculului din baza de date? Pai am pus asta CarInfo[vsid][Spawned],
0 kellerman21 Posted November 23, 2020 Posted November 23, 2020 cel mai prost sistem de masini creat vreodata, poti sa-l stergi si sa-ti faci altul de la 0
0 cobalt_thekiller Posted November 23, 2020 Author Posted November 23, 2020 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
Question
cobalt_thekiller
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++;
}

Edited by cobalt_thekiller5 answers to this question
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now