Jump to content

[DELETED]2 bug-uri la despawntime si slots, va rog help.


fasolebatuta
 Share

Recommended Posts

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[pvSpawnedID] == INVALID_VEHICLE_ID)
        {
            format(string, 2048, "%s{FFFFFF}%d\t%s\t{db0910}Despawned{FFFFFF}\t-\n", string, (i + 1), getVehicleName(PersonalVehicle[pvModelID]));
        }
        else
        {
            format(string, 2048, "%s{FFFFFF}%d\t%s\t%s\t%d minutes\n", string, (i + 1), getVehicleName(PersonalVehicle[pvModelID]), (IsVehicleOccupied(PersonalVehicle[pvSpawnedID])) ? ("{E5913E}Occupied{FFFFFF}") : ("{4DFF00}Spawned{FFFFFF}"), ((PersonalVehicle[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

 

Link to comment
Share on other sites

  • 7 months later...
  • 1 year later...
Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...