Jump to content
  • 0

Problema Dealership


Maxi28

Question

Salut. In urma cu cateva zile am intampinat o problema cu Dealership-ul si nu am idee daca e din script sau din mysql..

Problema este urmatoarea: Cand dau un rr la server intru si merg la DS dau sa cumpar o masina merge, dar nu prentru mult timp merge sa cumperi masini pentru scurt timp dupa aceea nu iti mai da voie.. nu afiseaza nici-un mesaj in mysql_log nu am gasit nici-o eroare.. nu inteleg din ce motiv este? Masinile pot fi cumparate pentru scurt timp doar dupa un rr..

Daca este nevoie revin cu edit cu script-ul ds-ului.

Mentionez ca pana acuma a functionat perfect.

Serverul este de 50 sloturi de la zeroping

 

 

 

EDIT: codul /buycar 

CMD:buycar( playerid, params[ ] )
{
    if( P_DATA[playerid][ pLevel ] < 3 ) return SCM( playerid, -1, "Ai nevoie de nivel 3 ca sa folosesti aceasta comanda!" );
    if(!IsPlayerInRangeOfPoint(playerid, 7.0, 2131.7498,-1150.4371,24.1567)) return SCM( playerid, -1, "Nu esti la DealerShip [/gps]" );
    new string[ 2000 ], count = 0, aim[256];
    for(new i = 1; i <= DS_Models; i++)
    {
        if(DealerInfo[vPrice] >= 0)
        {
            format(aim, 256, "%s\t$%s\t%d\n", GetVehicleName(DealerInfo[vModel]), FormatMoney(DealerInfo[vPrice]), DealerInfo[vStock]);
            strcat(string, aim);
            Selector[playerid][count][sModel] = DealerInfo[vModel];
            Selector[playerid][count][sID] = i;
            count++;
        }
    }
    strins(string, "Car\tPrice\tStock\n", 0);
    ShowPlayerDialog(playerid, DIALOG_DS, DIALOG_STYLE_TABLIST_HEADERS, "Buy Car", string, "Buy", "Cancel" );
    return 1;
}

Edited by Maxi28
Link to comment
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.

×
×
  • 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.