- 0
Bug /v
-
Similar Content
-
- 7 replies
- 634 views
-
- 10 answers
- 3.214 views
-
- 3 answers
- 890 views
-
- 16 answers
- 2.613 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.
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.
Question
TheGodfather
Salut, am un bug in care arata jucatorului in /v ca masina/masinile pe care le are sunt ocupate chiar daca nu sunt.
Cand dau /v da return la functia asta:
stock ShowPlayerVehicle(playerid, bool: type) {
if(aspam[playerid] > 0) return SCMEx(playerid, COLOR_LIGHTRED, "[Command Anti-Spam] {FFFFFF}Wait %d seconds.", aspam[playerid]);
new szTitle[2000], szDialog[2000], x = 0;
if(Iter_Count(MyVehicle[playerid]) == 0)
return SCM(playerid, COLOR_LGREEN, "Error: You do not have a personal vehicle!");
format(szTitle, sizeof(szTitle), "Your Vehicles {E3DE31}%d/%d", Iter_Count(MyVehicle[playerid]), GetSlots(playerid));
strcat(szDialog, "Vehicul\tStatus\tDespawn Time\tOthers details\n");
foreach(MyVehicle[playerid], car) {
format(szDialog, sizeof(szDialog), "%s%s\t%s\t%s\t%s\n", szDialog, aVehicleNames[CarInfo[car][cModel]-400], 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;
}
function IsVehicleOccupied(vehicleid) return VehicleOccupied[vehicleid] != 0 ? (true) : (false);
10 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