- 0
Am nevoie de ajutor, va rog.
-
Similar Content
-
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
NuamNume
Salut, am 2 bug uri la un sistem de masini personale.
la comanda asta:
YCMD:vehicles(playerid, params[], help)
{
if(!Iter_Count(PersonalVehicle[playerid]))
return sendPlayerError(playerid, "Nu ai nici un vehicul personal.");
new string[2048] = "Slot\tVehicle\tStatus\tDespawn Time\n";
foreach(new i : PersonalVehicle[playerid])
{
if(PersonalVehicle[i][pvSpawnedID] == INVALID_VEHICLE_ID)
{
format(string, 2048, "%s{FFFFFF}%d\t%s\t{db0910}Despawned{FFFFFF}\t-\n", string, (i + 1), getVehicleName(PersonalVehicle[i][pvModelID]));
}
else
{
format(string, 2048, "%s{FFFFFF}%d\t%s\t%s\t%d minutes\n", string, (i + 1), getVehicleName(PersonalVehicle[i][pvModelID]), (IsVehicleOccupied(PersonalVehicle[i][pvSpawnedID])) ? ("{E5913E}Occupied{FFFFFF}") : ("{4DFF00}Spawned{FFFFFF}"), ((PersonalVehicle[i][pvDespawnTime] - gettime()) / 60));
}
}
new title[64];
format(title, 64, "%s's garage (%d slots)", getName(playerid), playerInfo[playerid][pVehicleSlots]);
Dialog_Show(playerid, 0, DIALOG_STYLE_TABLIST_HEADERS, title, string, "Select", "Close");
return true;
}
acolo la %d slots si despawn time nu merge, arata asta. O sa va las poza.
https://imgur.com/a/kjtqgNi
Pot sa primesc ajutor? Multumesc frumos.
3 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