/* File: fn_mresArray.sqf "; Description: Acts as a mres (MySQL Real Escape) for arrays so they can be properly inserted into the database without causing any problems. The return method is 'hacky' but it's effective. */ private["_array"]; _array = param [0,[],[[]]]; _array = str(str(_array)); _array = toArray(_array); for "_i" from 0 to (count _array)-1 do { _sel = _array select _i; if((_i != 0 && _i != ((count _array)-1))) then { if(_sel == 34) then { _array set[_i,96]; }; }; }; toString(_array);