------------ English -----------
Hello,
I have a little problem with a script (Dynamic Markers), which I can not fix, I do not really find the error mentioned.
Here is the corresponding file:
private["_marker", "_name", "_config", "_position", "_linked"];
_name = [_this, 0, "", [""]] call BIS_fnc_param;
_position = [_this, 1, [], [[]]] call BIS_fnc_param;
if (_position isEqualTo []) exitWith {};
_config = missionConfigFile >> "JMSCOOPER_DYN_MARKERS" >> _name;
if (!isClass _config) exitWith {};
_marker = createmarker [_name, _position];
diag_log format["Creating dynamic marker %1", _name];
_marker setMarkerShape getText(_config >> "shape");
_marker setMarkerType getText(_config >> "type");
_marker setMarkerColor getText(_config >> "color");
_marker setMarkerText getText(_config >> "text");
_marker setMarkerSize [getNumber(_config >> "size"), getNumber(_config >> "size")];
_linked = getText(_config >> "linked");
if (_linked != "") then
{
private "_object";
_object = call compile _linked;
if (isNil "_object") then {
diag_log format["[ERROR] Can't find linked object for %1 (variable nil)", _name];
} else {
if (isNull _object) then {
diag_log format["[ERROR] Can't find linked object for %1 (objet null)", _name];
} else {
_object setPosATL _position;
missionNamespace setVariable [format["dyn_marker_linked_%1", _marker], _object];
diag_log format["Linked object for %1 placed", _name];
};
};
};
{
_object = _x createVehicle ([_position, 8] call CBA_fnc_randPos);
missionNamespace setVariable [format["dyn_marker_supp_%1", _marker], (missionNamespace getVariable [format["dyn_marker_supp_%1", _marker], []]) + [_object]];
} forEach getArray(_config >> "nearObjects");
_marker;
Alles anzeigen
and here are the logs:
"Creating dynamic marker cannabis_field_marker_1"
Error in expression <sClass _config) exitWith {};
_marker = createmarker [_name, _position];
diag_lo>
Error position: <createmarker [_name, _position];
diag_lo>
Error Type String, expected Number
File \JMSCOOPER_Serveur\Fonctions\DynamicMarkers\fn_dynamicMarkers_create.sqf [JMSCOOPERServeur_fnc_dynamicMarkers_create], line 17
"[1,[[""2041.54"",""10679.1"",""-0.00503445""]]]"
"Creating dynamic marker meth_field_marker_1"
Error in expression <sClass _config) exitWith {};
_marker = createmarker [_name, _position];
diag_lo>
Error position: <createmarker [_name, _position];
diag_lo>
Error Type String, expected Number
File \JMSCOOPER_Serveur\Fonctions\DynamicMarkers\fn_dynamicMarkers_create.sqf [JMSCOOPERServeur_fnc_dynamicMarkers_create], line 17
"[1,[[""10439.1"",""4858.43"",""-0.00434494""]]]"
"Creating dynamic marker heroin_field_marker_1"
Error in expression <sClass _config) exitWith {};
_marker = createmarker [_name, _position];
diag_lo>
Error position: <createmarker [_name, _position];
diag_lo>
Error Type String, expected Number
File \JMSCOOPER_Serveur\Fonctions\DynamicMarkers\fn_dynamicMarkers_create.sqf [JMSCOOPERServeur_fnc_dynamicMarkers_create], line 17
"[1,[[""8507.28"",""12475.3"",""0.123337""]]]"
"Creating dynamic marker launder_marker_1"
"Linked object for launder_marker_1 placed"
Error in expression <(objet null)", _name];
} else {
_object setPosATL _position;
missionNamespace se>
Error position: <setPosATL _position;
missionNamespace se>
Error Type String, expected Number
File \JMSCOOPER_Serveur\Fonctions\DynamicMarkers\fn_dynamicMarkers_create.sqf [JMSCOOPERServeur_fnc_dynamicMarkers_create], line 37
Error in expression <sClass _config) exitWith {};
_marker = createmarker [_name, _position];
diag_lo>
Error position: <createmarker [_name, _position];
diag_lo>
Error Type String, expected Number
File \JMSCOOPER_Serveur\Fonctions\DynamicMarkers\fn_dynamicMarkers_create.sqf [JMSCOOPERServeur_fnc_dynamicMarkers_create], line 17
Alles anzeigen
I do not see so much the error indicated, for me everything is clean ... And yet everything seems to be the opposite
If you have a track, I am taker!
Thank you in advance,
-------------- Deutsch -------------
Hallo,
Ich habe ein kleines Problem mit einem Skript (Dynamic Markers), kann ich nicht zur Ruhe, ich weiß nicht wirklich die erwähnten Fehler finden.
Ich sehe nicht so viel angezeigten Fehler, für mich alles sauber ist ... Und doch scheint alles das Gegenteil zu sein
Wenn Sie einen Titel haben, lassen Sie es mich wissen!
Vielen Dank im Voraus
---------- Français ------------
Bonjour,
J’ai un petit soucis avec un script (Dynamic Markers), que je n’arrive pas à régler, je ne trouve pas vraiment l’erreur mentionné.
Je ne vois pas tellement l’erreur indiqué, pour moi tout est clean… Et pourtant tout semble être le contraire
Si vous avez une piste, je suis preneur !
Merci d’avance,