- 0
Bug /v
-
Similar Content
-
- 4 replies
- 315 views
-
- 9 replies
- 349 views
-
- 1 reply
- 293 views
-
- 2 answers
- 476 views
-
- 3 replies
- 412 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.
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);
Link to comment
Share on other sites
10 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.