cobalt_thekiller Posted November 21, 2020 Report Share 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 Quote Link to comment Share on other sites More sharing options...
0 cobalt_thekiller Posted November 21, 2020 Author Report Share Posted November 21, 2020 up Quote Link to comment Share on other sites More sharing options...
0 Serban Posted November 21, 2020 Report Share Posted November 21, 2020 Ai luat ID-ul vehiculului din baza de date? Quote Link to comment Share on other sites More sharing options...
0 cobalt_thekiller Posted November 21, 2020 Author Report Share 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], Quote Link to comment Share on other sites More sharing options...
0 kellerman21 Posted November 23, 2020 Report Share Posted November 23, 2020 cel mai prost sistem de masini creat vreodata, poti sa-l stergi si sa-ti faci altul de la 0 Quote Link to comment Share on other sites More sharing options...
0 cobalt_thekiller Posted November 23, 2020 Author Report Share 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 Quote Link to comment Share on other sites More sharing options...
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++;
}
Link to comment
Share on other sites
5 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.