I told you that the cash of each unit is inside the according subarray of cash_array.
Look, cash_array looks like this:
[[w1,0,0],[w2,0,1],[w3,0,2],[w4,0,3],[e1,0,4],[e2,0,5],[e3,0,6],[e4,0,7]]This is now an array consisting of 8 subarrays, each featuring 3 informations:
1) The unit
2) Their unit's cash
3) A number which indicates the position of the subarray in cash_array
At start of the mission the cash of each unit is at 0 here, while you have
another variable (e.g: e1cash) which you set to 50.
If you want the start cash to be 50, then you should not make it to
0 in init.sqs but to 50 btw.
Where do you transfer the head-bounty from the unit's array to it's
proposed variable (e1cash for e1)?
If your other scripts are all setup to cooperate with a variable e.g. e1cash
then we need to implement it (this would just make a few changes in
cash_update.sqs)
Also i noticed that the performance we saved with that array/subarray method,
you've put into the other scripts. I mean the way how you ask in the script
everything seperately for each playername.
For example it doesn't matter wether the player is unit w1 or w2 or e4, you only
need to add the actions to the player and not to it's editorname (this would save
you alot of lines inside your scripts).
-------------------------------------------------
Just one thing i'd expect from you too;
do your homework and try to find out by yourself, what my code
is doing. Start with using radio-triggers to let you display some variables
or arrays so that you figure out what happens when.
I just have to say this because i see how you waiste holy performance in
the other scripts by running the same commands over and over again.
I would feel stupid in just making a mission for somebody (or a part of a
mission), without this guy having understood what i told him.
-------------------------------------------------------------------------------------------
:edit - and another thing i noticed is that you made it for players only
If i know this from beginning, i could have saved alot of work too with
an easier way for the respawn check script.
However, i will not again change everything, maybe later when this is
finished i'll think one more time about it.
~S~ CD