_animClass =['lsd',1] call INV_AddInventoryItem (standalone) <---- works perfect .
_animClass ="['lsd',1] call INV_AddInventoryItem;" <-----and in my script too.
_animClass = ["lsd",1] call INV_AddInventoryitem <-----it works as standalone script but dont know how to implement this into my whole script._animClass = "["lsd",1]call INV_AddInventoryitem;" Its probably because I miss to put e.x:[ ], ' " or something (I want to use this because the first one is prevented to use on some server.. Sorry for my english , look at the codes. Here you can see the whole script
difference highlighted with red. I want to use the second option in my menu But I can only use the first code.
_animClass = "";
_animClass = "["lsd",1]call INV_AddInventoryitem;" <----- where is the mistake in this script??
_animName = _this select 1;
_animPerson = _this select 0;
_animClass = "";
if (_animPerson == "") exitwith { Hint "Some how there was an error check your scripts : or You need to select a name in the player list , if you wish to activate it on all players then click all players or select an indevidiual name to perform that action onto. then click EXECUTE.";};
if (_animPerson == "ALL PLAYERS") then {_animPerson = "";};
// -- -- ------------------------------//
switch (_animName) do
{
case "Add LSD": // Add LSD
{
_animClass ="['lsd',1] call INV_AddInventoryItem;"
};
};
//hint format ["%1 , %2 , %3",_animPerson,_animName,_animClass];
nil = [_animPerson, 11 ,_animClass] execVM "AJ\scripts\666.sqf";
this one works great _animClass ="['lsd',1] call INV_AddInventoryItem;" but not with the other