Jump to content
  • 0

2 bug-uri, va rog help.


Question

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

 

Link to post
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...

Important Information

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.