Français Solved Problème d'affichage des chiffres et des lettres après avoir suivi un tutoriel sur la modification des plaques d'immatriculation

  • Auteur de la discussion Auteur de la discussion Robinox
  • Date de début Date de début
Enfin j'ai réussi ! J'ai carrément remodifier le script et repris la variable fournie dans le The_Programmer/addons/license_plate
1606050047359.png

Ducoup le nouveau fichier fn_setCharlieCOPlate.sqf que j'ai modifier donne :

Code:
/*
    Author : Maxence
*/
_vehicle = param [0,objNull,[objNull]];
if (isNull _vehicle) exitWith {};

_plate = _vehicle getVariable ["vehicle_info_plate","0"];

if !(_plate in ["","0"]) then {
    if ((count _plate) > 15) then {
        _plate = (["STR_RENTAL_PLATE","Max_Settings_Immatriculation","Immatriculation_Localization"] call theprogrammer_core_fnc_localize);
    };

    _plateArr = _plate splitString "";

    {
        _plateChar = _x;
        _plateChar = toUpper _plateChar;

        if !(_plateChar in ["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"]) then {
            _plateArr deleteAt _forEachIndex;
        };
    } forEach _plateArr;

    _plateArr resize 7;

    {
        _plateChar = _plateArr select _forEachIndex;
        if (isNil {_plateChar}) then {_plateChar = "";};
        _plateChar = toUpper _plateChar;

        _vehicle setObjectTextureGlobal [_x,format ["Charlieco89_Base\Lettre\%1.paa",_plateChar]];
    } forEach [12,13,14,15,16,17,18];
} else {
    {
        _vehicle setObjectTextureGlobal [_x, ""];
    } forEach [12,13,14,15,16,17,18];
};
 
Enfin j'ai réussi ! J'ai carrément remodifier le script et repris la variable fournie dans le The_Programmer/addons/license_plate
Voir la pièce jointe 1236

Ducoup le nouveau fichier fn_setCharlieCOPlate.sqf que j'ai modifier donne :

Code:
/*
    Author : Maxence
*/
_vehicle = param [0,objNull,[objNull]];
if (isNull _vehicle) exitWith {};

_plate = _vehicle getVariable ["vehicle_info_plate","0"];

if !(_plate in ["","0"]) then {
    if ((count _plate) > 15) then {
        _plate = (["STR_RENTAL_PLATE","Max_Settings_Immatriculation","Immatriculation_Localization"] call theprogrammer_core_fnc_localize);
    };

    _plateArr = _plate splitString "";

    {
        _plateChar = _x;
        _plateChar = toUpper _plateChar;

        if !(_plateChar in ["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"]) then {
            _plateArr deleteAt _forEachIndex;
        };
    } forEach _plateArr;

    _plateArr resize 7;

    {
        _plateChar = _plateArr select _forEachIndex;
        if (isNil {_plateChar}) then {_plateChar = "";};
        _plateChar = toUpper _plateChar;

        _vehicle setObjectTextureGlobal [_x,format ["Charlieco89_Base\Lettre\%1.paa",_plateChar]];
    } forEach [12,13,14,15,16,17,18];
} else {
    {
        _vehicle setObjectTextureGlobal [_x, ""];
    } forEach [12,13,14,15,16,17,18];
};
Hmmm.. même après avoir tenté, c'est toujours pas fonctionnel ahah
 
  • Sad
Les réactions: Chaton