I just noticed another mistake i made:
The onActivation line of the trigger:
cash_array select temp_count set [3,temp_cash]; cash_update = false; publicVariable "cash_update"
should be changed into:
cash_array select temp_count set [2,temp_cash]; cash_update = false; publicVariable "cash_update"
Look: cash_array looks now like this:
[[unit1,cash,0],[uni2,cash,1],[unit3,cash,2]]
Now my mistake was i did change the counter (3rd element of the subarray).
But i should change the cash (second element of the subarray).
~S~ CD