Commit Graph

12 Commits

Author SHA1 Message Date
ebaydayz
de4f50dad0 Fix trader menu expected array error
TraderItemList and TraderCatList should be initialized as arrays, not numbers. Fixes this error:
```
Error in expression < 0;
if (_index < 0) exitWith {};
while {count TraderItemList < 1} do { sleep 1; >
  Error position: <count TraderItemList < 1} do { sleep 1; >
  Error count: Type Number, expected Array,Config entry
File z\addons\dayz_code\compile\player_traderMenuHive.sqf, line 174
```
See: https://github.com/vbawol/DayZ-Epoch/issues/1616

Tested buying and selling to all Stary and Bash traders as well as the boat dealer with these changes. No more error or problems.
2015-02-04 14:09:16 -05:00
[VB]AWOL
c2f216dac8 count not working well here 2014-06-01 02:10:26 -05:00
icomrade
e54b9983dd Replace forEach with Count
Use count where you do not need _forEachIndex variable, it's quicker
than forEach.
2014-05-27 15:37:57 -04:00
Florian Kinder
542be82a58 Added trade_any_vehicle_free
For buy unlocked vehicles (without getting a key)
2014-02-06 12:39:17 +01:00
Skaronator
cdc062a833 Better Movement in Trader Menu, just for config 2014-02-06 11:56:03 +01:00
[VB]AWOL
8fa82911ef changed to missionConfigFile and commented out include
an
2014-02-04 14:33:41 -06:00
[VB]AWOL
5308ddcf1a faster no need for loading... 2014-02-04 14:13:41 -06:00
[VB]AWOL
731bc92be2 working 2014-02-04 14:11:49 -06:00
[VB]AWOL
37b75bea61 missed bracket 2014-02-04 13:23:20 -06:00
[VB]AWOL
a77a43d88f get trader items from config 2014-02-04 12:50:58 -06:00
Skaronator
d71bb45de3 Something like this to get CfgVehicle/Weapon/Magazine 2014-02-04 19:02:29 +01:00
Skaronator
171952e922 Start with ConfigTrader 2014-02-04 17:16:32 +01:00