hi, in this script, i am trying to make a reusable script for taking money, ok here is the script so far:
;;UniMoney1.sqs
_unit = _this select 0
_money = _this select 1
_action = _this select 2
_Action = _unit addaction ["Take Money", "TakeMoney.sqs"]
;;takeMoney.sqs
deletevehicle _money
money = money + 40
hint format ["Players Money is %1$", Money]
removeaction _Action
Now i know that i have done somthing wrong with the _Action, when ingame a create a trigger saying this -
[man1, money1, TakeMoney1] exec "UniMoney1.sqs
I have done somthing wrong in this script can someone point out what it is, and tell me how to fix it, thanks