Bug report:
Bad conversion: scalar spam in the rpt is being caused by supplying toString with wrong data type.
shortNames.sqf:
_buni = _buni +[" "] + [" "];
...
_bname = tostring _buni;
Since toString only accepts numeric representations of letters (ascii or unicode), it doesn't know what to do when you supply it " ", so it sends a warning to the rpt that it can't convert " ".
Fix:
_buni = _buni +[32] + [32]; // 32 is a space in ascii
...
_bname = tostring _buni;
Now when the function is called with "mike" it will return actually "mk  ", and with the bug it returned "mk".
Bad conversion: scalar spam in the rpt is being caused by supplying toString with wrong data type.
shortNames.sqf:
_buni = _buni +[" "] + [" "];
...
_bname = tostring _buni;
Since toString only accepts numeric representations of letters (ascii or unicode), it doesn't know what to do when you supply it " ", so it sends a warning to the rpt that it can't convert " ".
Fix:
_buni = _buni +[32] + [32]; // 32 is a space in ascii
...
_bname = tostring _buni;
Now when the function is called with "mike" it will return actually "mk  ", and with the bug it returned "mk".