Hey Leute.
Ich wollte machen das man per Button eine Lizenz bekommt. Nur funktioniert es nicht so wie ich es mir vorstelle.
meine vorgehensweise:
Code
_display = findDisplay 666999;
_Btn1 = _display displayCtrl 6669991;
_Btn1 buttonSetAction "missionNamespace setVariable [LICENSE_VARNAME(""cocaine"",""civ""),true];";
dann bekomm ich diesen fehler
Code
19:56:28 Error in expression <onNamespace setVariable [LICENSE_VARNAME("cocaine","civ"),true];>
19:56:28 Error position: <("cocaine","civ"),true];>
19:56:28 Error Fehlende ]
19:56:28 Error in expression <onNamespace setVariable [LICENSE_VARNAME("cocaine","civ"),true];>
19:56:28 Error position: <("cocaine","civ"),true];>
19:56:28 Error Fehlende ]
ich hab jetzt schon überall [] hinzugefügt und entfernt am anfang sowie das komplette etc. pp
ich hab auch schon buttonSetAction [6669991, "missionNamespace setVariable [LICENSE_VARNAME(""cocaine"",""civ""),true];"];
LG Askeroth