Jump to content
Autentificarea cu Google și Facebook nu mai este disponibilă. ×

Question

Posted

Salutare am intampinat o problema la serverul meu 

Cand ma inregistrez pe el si dau /v imi apar acolo 2 masini o data am avut infernus si perenial,am sters contul si am facut altul mi-a dat un comet si zr-350 

cum pot sa repar aceasta problema 

la comanda /v apare asta

if(BlockVehUse[playerid] != 0) return SS(playerid, COLOR_RED2, "Ai prea multe masini, foloseste /sellcar si vinde una.", "You have to many vehicles, use /sellcar and sell one.");

si mai apare chestia asta cand ma inregistrez 

if(count > PlayerInfo[playerid][pCarSlots])
    {
        if(PlayerInfo[playerid][pLanguage] == 2) format(string, sizeof(string), "Ai prea multe masini! Poti avea maxim %d masini (tu ai %d).", PlayerInfo[playerid][pCarSlots], count);
        else format(string, sizeof(string), "You have to many vehicles! You can have maximum %d cars (you have %d).", PlayerInfo[playerid][pCarSlots], count);
        SendClientMessage(playerid, COLOR_RED2, string);
        SS(playerid, COLOR_RED2, "Nu vei putea conduce nicio masina pana cand nu vei vinde una din masinile tale.", "You can't use a vehicle until you sell one of your cars.");
        BlockVehUse[playerid] = count;
    }
    else
    {
        BlockVehUse[playerid] = 0;
    }

este pusa la publicul loadcarid

public LoadCarID(playerid)
{
    for(new idd; idd < MAX_PERSONAL_VEHICLES; idd++)
    {
        PlayerInfo[playerid][pCarID][idd]            = 0;
        PlayerInfo[playerid][pCar][idd]                = -1;
        PlayerInfo[playerid][pCarModel][idd]         = 0;
        PlayerInfo[playerid][pCarLocX][idd]         = 0.0;
        PlayerInfo[playerid][pCarLocY][idd]         = 0.0;
        PlayerInfo[playerid][pCarLocZ][idd]         = 0.0;
        PlayerInfo[playerid][pCarAngle][idd]         = 0.0;
        PlayerInfo[playerid][pCarLLocX][idd]         = 0.0;
        PlayerInfo[playerid][pCarLLocY][idd]         = 0.0;
        PlayerInfo[playerid][pCarLLocZ][idd]         = 0.0;
        PlayerInfo[playerid][pCarAngle2][idd]         = 0.0;
        PlayerInfo[playerid][pCarBuyTime][idd]        = 0;
        PlayerInfo[playerid][pCarColor1][idd]         = 1;
        PlayerInfo[playerid][pCarColor2][idd]         = 1;
        PlayerInfo[playerid][pCarLock][idd]         = 0;
        PlayerInfo[playerid][pCarInsPrice][idd]     = 0;
        PlayerInfo[playerid][pCarIns][idd]             = 0;
        PlayerInfo[playerid][pCarKM][idd]             = 0.0;
        PlayerInfo[playerid][pCarKMLast][idd]        = 0;
        PlayerInfo[playerid][pCarVIP][idd]            = 0;
        PlayerInfo[playerid][pCarVipColor][idd]        = 0;
        PlayerInfo[playerid][pCarHP][idd]             = 0.0;
        PlayerInfo[playerid][pCarDamage1][idd]         = 0;
        PlayerInfo[playerid][pCarDamage2][idd]         = 0;
        PlayerInfo[playerid][pCarDamage3][idd]         = 0;
        PlayerInfo[playerid][pCarDamage4][idd]         = 0;
        PlayerInfo[playerid][pCarGas][idd]             = 100;
        PlayerInfo[playerid][pCarPaintJ][idd]         = 6;
        PlayerInfo[playerid][pCarBlock][idd]        = 0;
        CarVipName[playerid][idd] = "";
        CarPlate[playerid][idd] = "";
        CarOwner[playerid][idd] = "";
        for(new s; s < 17; s++)
        {
            CarMod[playerid][idd] = 0;
        }
    }
    new string[256],count;
    format(string, sizeof(string), "SELECT * FROM `cars` WHERE `Owner`='%s'", PlayerInfo[playerid][pNormalName]);
    new Cache: xd = mysql_query(SQL, string);
    for(new i, j = cache_get_row_count (); i != j; ++i)
    {
        if(count < MAX_PERSONAL_VEHICLES)
        {
            PlayerInfo[playerid][pCar][count] = cache_get_field_content_int(i, "ID");
        }
        count++;
    }
    cache_delete(xd);
    if(count > PlayerInfo[playerid][pCarSlots])
    {
        if(PlayerInfo[playerid][pLanguage] == 2) format(string, sizeof(string), "Ai prea multe masini! Poti avea maxim %d masini (tu ai %d).", PlayerInfo[playerid][pCarSlots], count);
        else format(string, sizeof(string), "You have to many vehicles! You can have maximum %d cars (you have %d).", PlayerInfo[playerid][pCarSlots], count);
        SendClientMessage(playerid, COLOR_RED2, string);
        SS(playerid, COLOR_RED2, "Nu vei putea conduce nicio masina pana cand nu vei vinde una din masinile tale.", "You can't use a vehicle until you sell one of your cars.");
        BlockVehUse[playerid] = count;
    }
    else
    {
        BlockVehUse[playerid] = 0;
    }
    LoadCar(playerid);
    return 1;
}

7 answers to this question

Recommended Posts

  • 0
Posted

E dus pe apa sambetei tot sistemu' de vehicule din bigzone nu prea ai ce sa-i faci.

Rescrie-l / plateste un scripter sa-l rescrie si scapi de problema asta.

  • 0
Posted (edited)
42 minutes ago, Dennis12. said:

E dus pe apa sambetei tot sistemu' de vehicule din bigzone nu prea ai ce sa-i faci.

Rescrie-l / plateste un scripter sa-l rescrie si scapi de problema asta.

man cam cat dureaza sa fie rescris? si cat costa? ca as vrea sa il faci tu

Edited by AndreiB
  • 0
Posted (edited)
1 minute ago, Dennis12. said:

:))

 Depinde de scripter bro .. 

vreau sa il faci tu, te platesc 

Edited by AndreiB
  • 0
Posted
Acum 11 minute, AndreiB a spus:

AI skype sa vorbim

Discord: Dennis12#6604 sau Dennis#6604 ( asta il folosesc eu )

Si skype: denis.mario12 ( nu folosesc mai de loc )

  • 0
Posted
2 minutes ago, Dennis12. said:

Discord: Dennis12#6604 sau Dennis#6604 ( asta il folosesc eu )

Si skype: denis.mario12 ( nu folosesc mai de loc )

hai pe skype

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