From 731bc92be21083cc4d88b6765c54435f83bafce5 Mon Sep 17 00:00:00 2001 From: "[VB]AWOL" Date: Tue, 4 Feb 2014 14:11:49 -0600 Subject: [PATCH] working --- SQF/dayz_code/compile/player_traderMenuConfig.sqf | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/SQF/dayz_code/compile/player_traderMenuConfig.sqf b/SQF/dayz_code/compile/player_traderMenuConfig.sqf index 168b9a182..df9b8bca1 100644 --- a/SQF/dayz_code/compile/player_traderMenuConfig.sqf +++ b/SQF/dayz_code/compile/player_traderMenuConfig.sqf @@ -28,14 +28,16 @@ TraderDialogLoadItemList = { lbAdd [TraderDialogItemList, "Loading items..."]; - _cfgTraderCategory = configFile >> "CfgServerTrader" >> (format["Category_%1",_trader_id]); + _cfgTraderCategory = configFile >> "CfgTraderCategory" >> (format["Category_%1",_trader_id]); + + PVDZE_plr_TradeMenuResult = []; for "_i" from 0 to ((count _cfgTraderCategory) - 1) do { _class = configName (_cfgTraderCategory select _i); - _type = getText (_class >> "type"); - _buy = getArray (_class >> "buy"); - _sell = getArray (_class >> "sell"); + _type = getText ((_cfgTraderCategory select _i) >> "type"); + _buy = getArray ((_cfgTraderCategory select _i) >> "buy"); + _sell = getArray ((_cfgTraderCategory select _i) >> "sell"); _buy set [2,1]; _sell set [2,1];