Jump to content
  • 0

DealerShip


ciprian2013

Question

Problema intalnita (descriere): Imi cumpar un vehicul de la dealership ii pune de exemplu id-ul 206 dupa cand o cumpar pe a doua masina ii pune tot acelasi id si prima masina dispare.Cand o vand pe a doua ,prima masina apare la loc.Nu inteleg de ce nu imi creeaza id-ul pentru a doua masina.
Ero(area / rile) / warning-(ul / urile):
Liniile de cod / sursa / script-ul(obligatoriu):
Imagini / Video (optional):
Ati incercat sa rezolvati singur?: Da.

Daca va mai trebuie vreo comanda imi spuneti.

Comanda /buyvehicle

Quote

CMD:buyvehicle(playerid, params[])
{
    if ( GetPVarInt( playerid, "AccountLocked" ) == 1 )
     return SCM( playerid, COLOR_WHITE, "Contul tau este blocat, deblocheaza-l folosind comanda /unlockacc." );
    if(gLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_ERROR, "You are not logged in.");
    if(IsPlayerInRangeOfPoint(playerid,5.0,2132.0627,-1150.6255,24.1395))
    {
        ShowPlayerDialog(playerid, DIALOG_DSG, DIALOG_STYLE_LIST, "Buy a vehicle", "Cheap cars\nRegular cars\nExpensive cars\nBikes\nAir Vehicles","Select", "Cancel");
    }
    else SendClientMessage(playerid, COLOR_ERROR,"You are not at dealership.");
    return 1;
}

 

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

Guest
This topic is now closed to further replies.
×
×
  • 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.