noxsicarius / Epoch-Admin-Tools

An admin menu for the AmrA2 DayZ mod. Lead Developer: NoxSicarius
GNU General Public License v3.0
30 stars 48 forks source link

skinChanger.sqf #192

Closed jahangir13 closed 10 years ago

jahangir13 commented 10 years ago

Hi noxsicarius,

in tools/skinChanger.sqf line 28 and 35:

/////}forEach ARRAY; } forEach [_array1,_array2];

Needs to be done like this, I guess. Otherwise I get errors in the rpt that ARRAY is undefined. For reference: https://community.bistudio.com/wiki/forEach (Post of Kronzky) on how that works.

noxsicarius commented 10 years ago

That is a little more complicated. No idea why that was coded that way there, but there are two different loop types running the same code and one is done wrong, but the other is correct. This is the reason it still works, but gives an error.

jahangir13 commented 10 years ago

Ah, for me it did work after changing this. But I guess forEach ARRAY is wrong in any case.