RyanTT / DynamicMarket

Dynamic Market for AltisLife 3 and AltisLife 4
http://agn.site.nfoservers.com/services/
16 stars 18 forks source link

DynMarket on Altis Life 4.4R4 #28

Closed KR3KZ closed 3 years ago

KR3KZ commented 8 years ago

Hello guys,

Im running Altis Life 4.4R4 and i try to get the DynMarket working.

I solve so many problem (like the EXEC and life_fnc_mp etc...)

but this is a problem i cant solve :

22:50:18 Error in expression <box )-1,_itemDisplayIcon]; }; } forEach DYNMARKET_prices;> 22:50:18 Error position: <DYNMARKET_prices;> 22:50:18 Error Variable indéfinie dans une expression: dynmarket_prices 22:50:18 File mpmissions\__CUR_MP.Altis\core\DynMarket\fn_LoadIntoListbox.sqf, line 30

i dont get it so a bit help would be much appreciated

here is my fn_LoadIntoListbox.sqf :

include

/*

DYNAMIC MARKET SCRIPT

AUTHOR: RYAN TT.

STEAM: www.steamcommunity.com/id/ryanthett

DISCLAIMER: THIS SCRIPT CAN BE USED ON EVERY SERVER ONLY

WITH THIS HEADER / NOTIFICATION

*/

if (isNil "DYNMARKET_prices") then {[getPlayerUID player] remoteExec ["TON_fnc_playerLogged",-2];hint "Calcul des prix en cours..";sleep 1;};

disableSerialization; _dialog = findDisplay 7100; _listbox = _dialog displayCtrl 7055; _blacklist = [];

{ _itemName = _x select 0; _itemDisplayName = M_CONFIG(getText,"VirtualItems",_itemName,"displayname"); _itemDisplayIcon = M_CONFIG(getText,"VirtualItems",_itemName,"icon"); _itemDisplayName = localize _itemDisplayName; if !(_x select 0 in _blacklist) then { _listbox lbAdd format ["%1",_itemDisplayName]; _listbox lbSetData [(lbSize _listbox)-1,_x select 0]; _listbox lbSetPicture [(lbSize _listbox )-1,_itemDisplayIcon]; }; } forEach DYNMARKET_prices; // this is the line 30

thanks you