Jump to content
  • 0

Problema Dealership


Question

Posted (edited)

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

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • 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.