Français Solved Erreur de connexion au serveur après avoir modifié la configuration des véhicules

  • Auteur de la discussion Auteur de la discussion LeblondTv
  • Date de début Date de début

LeblondTv

User
7/9/23
110
0
800
Salut tout le monde j'ai un souci quand je veux ajoute une voiture au shop j'ai un souci avec la class j'ai fait un copier coller je vous montre que j'ai bien la voiture dans le config "berlingo1_civ" pareil pour la CLASS avec l'inventaire , prix et tout sa bien quand je veux rejoindre mon serveur une erreur comme quoi le extdb a pas démarre correctement voir écran noir !! Ps quand je supprime la class avec le prix bien j'ai plus écran noir avec extdb comme problème a savoir que je copier coller se qui et déjà fonctionnelle et réajuste

Posté par L LeblondTv via discord.
 

Fichiers joints

  • image.png
    image.png
    20.2 KB · Affichages: 2
  • image.png
    image.png
    16.8 KB · Affichages: 1
  • image.png
    image.png
    13.6 KB · Affichages: 2
  • image.png
    image.png
    237 KB · Affichages: 2
--- This message was automatically generated by ChatGPT, the content may be incorrect. Please read the message with precautions! ---

Hey L LeblondTv!

It sounds like you are encountering an issue with your SQF script related to adding a car to a shop in Arma 3. The error you are experiencing when attempting to join the server might be related to the syntax or configuration of the class you've added. Make sure to double-check the class name, inventory setup, and pricing within your script. Also, be cautious about any potential conflicts with external database (extDB) connections. If deleting the class resolves the issue, it indicates a problem within that section of your script. Review and adjust your copied code carefully for correct functionality.

Feel free to share the specific part of your SQF script if you need further assistance!

Best regards,
Bot

--- To continue the discussion with ChatGPT, click "Reply" at the bottom right of this message. Otherwise, wait for someone to reply. ---
 
Your problem is you have 2 }; on line 878 and the sec one on line 886 it must be only one and it should be on last of classes
Code:
    class B_Truck_01_fuel_F {
        vItemSpace = 50;
        vFuelSpace = 50000;
        conditions = "license_civ_trucking || {!(playerSide isEqualTo civilian)}";
        price = 250000;
        textures[] = {};
    };
}; // <----------------------- Here must delete

    class berlingo1_civ {
        vItemSpace = 50;
        conditions = "license_civ_driver || {!(playerSide isEqualTo civilian)}";
        price = 5000;
        textures[] = {};
    };
};

Posté par Mr.Crash Mr.Crash via discord.
 
yes delete it and remove // on class berlingo1_civ like this:
Code:
    class B_Truck_01_fuel_F {
        vItemSpace = 50;
        vFuelSpace = 50000;
        conditions = "license_civ_trucking || {!(playerSide isEqualTo civilian)}";
        price = 250000;
        textures[] = {};
    };

    class berlingo1_civ {
        vItemSpace = 50;
        conditions = "license_civ_driver || {!(playerSide isEqualTo civilian)}";
        price = 5000;
        textures[] = {};
    };
};

Posté par Mr.Crash Mr.Crash via discord.
 
Yes or you can just make it on the botm so you can't add class under it like this:
Code:
    class B_Truck_01_fuel_F {
        vItemSpace = 50;
        vFuelSpace = 50000;
        conditions = "license_civ_trucking || {!(playerSide isEqualTo civilian)}";
        price = 250000;
        textures[] = {};
    };

    class berlingo1_civ {
        vItemSpace = 50;
        conditions = "license_civ_driver || {!(playerSide isEqualTo civilian)}";
        price = 5000;
        textures[] = {};
    };

    class New_Car { //============= new car
        vItemSpace = 50;
        conditions = "license_civ_driver || {!(playerSide isEqualTo civilian)}";
        price = 7000;
        textures[] = {};
    };

    class New_Car { //============= new car
        vItemSpace = 50;
        conditions = "license_civ_driver || {!(playerSide isEqualTo civilian)}";
        price = 7000;
        textures[] = {};
    };
  // Here if you want to make new class




};

Posté par Mr.Crash Mr.Crash via discord.