i think i may of fixed it
it said error zero divisor i removed the space so it said this
(_list select _i) addEventHandler["fired",{_this exec "fired.sqs"}]
instead of
(_list select _i) addEventHandler ["fired",{_this exec "fired.sqs"}]
and its got rid of the error but im not sure if the scipts actually running
You could try
(_list select _i) fire (primary weapon (_list select _i)) or something similar to find out.
I've got the feeling the removed space only creates an unknown/not wrong situation for the debug messages.
Does the # mark the error at _list? Your script call looks good, but this error is likely for situations were the script doesn't find the array the user expected. To have a look at the actual array, execute the test line
hint format ["%1",_list] in your script. - It should display the array content in a hint. If your OFP crashes to desktop, make the size of the trigger smaller for this test.
Maybe the real problem is located in filling the thislist array with unit names, because of not working trigger settings.