• Impossible de vendre des items dans le marché


    Version Altis Life
    4.4R4

    Résultat attendu

    Pouvoir vendre des objets dans le marché.

    Résultat actuel

    Impossible de vendre un item.

    Comment reproduire le problème ?

    Aucune.

    Logs complets (serveur, client, extDB2 / extDB3)

    ( J’ai remarqué ça c’est la la ligne qui informe du problème, mais je ne sais pas comment résoudre ce problème, si vous voulez plus de log, dites-le moi )

    Error in expression <,"_price","_amount","_name"];  
    if(EQUAL(lbCurSel 2402,-1)) exitWith {};  
    _type>
      Error position: <(lbCurSel 2402,-1)) exitWith {};  
    _type>
      Error Missing )
    File core\shops\fn_virt_sell.sqf [life_fnc_virt_sell], line 65
    Error in expression <,"_price","_amount","_name"];  
    if(EQUAL(lbCurSel 2402,-1)) exitWith {};  
    _type>
      Error position: <(lbCurSel 2402,-1)) exitWith {};  
    _type>
      Error Missing )
    File core\shops\fn_virt_sell.sqf [life_fnc_virt_sell], line 65
    [20285,118.565,0,"XEH: PreInit started. v3.6.1.180131"]
    [20285,118.87,0,"XEH: PreInit finished."]
    

    Informations supplémentaires

    Mon fichier fn_virt_sell.sqf

    #include "..\..\script_macros.hpp"  
    /*  
    	File: fn_virt_sell.sqf  
    	Author: Bryan "Tonic" Boardwine  
    
    	Description:  
    	Sell a virtual item to the store / shop  
    */  
    private["_type","_index","_price","_amount","_name"];  
    if(EQUAL(lbCurSel 2402,-1)) exitWith {};  
    _type = lbData[2402,(lbCurSel 2402)];  
    
    _price = 0.0;  
    _itemNameToSearchFor = _type;  
    {  
    	_curItemName = _x select 0;  
    	_curItemPrice = _x select 1;  
    	if (_curItemName==_itemNameToSearchFor) then {_price=_curItemPrice};  
    } forEach DYNMARKET_prices;  
    
    //_price = [_type] call life_fnc_DYNMARKET_getPrice;  
    //_price = M_CONFIG(getNumber,"VirtualItems",_type,"sellPrice");  
    if(EQUAL(_price,-1)) exitWith {};  
    
    _amount = ctrlText 2405;  
    if(!([_amount] call TON_fnc_isnumber)) exitWith {hint localize "STR_Shop_Virt_NoNum";};  
    _amount = parseNumber (_amount);  
    if(_amount > (ITEM_VALUE(_type))) exitWith {hint localize "STR_Shop_Virt_NotEnough"};  
    
    _price = (_price * _amount);  
    _name = M_CONFIG(getText,"VirtualItems",_type,"displayName");  
    if(([false,_type,_amount] call life_fnc_handleInv)) then {  
    	hint format[localize "STR_Shop_Virt_SellItem",_amount,(localize _name),[_price] call life_fnc_numberText];  
    	ADD(CASH,_price);  
    	[] call life_fnc_virt_update;	  
    	DYNAMICMARKET_boughtItems pushBack [_type,_amount];  
    };  
    
    if(EQUAL(life_shop_type,"drugdealer")) then {  
    	private["_array","_ind","_val"];  
    	_array = life_shop_npc getVariable["sellers",[]];  
    	_ind = [getPlayerUID player,_array] call TON_fnc_index;  
    	if(!(EQUAL(_ind,-1))) then {  
    		_val = SEL(SEL(_array,_ind),2);  
    		ADD(_val,_price);  
    		_array set[_ind,[getPlayerUID player,profileName,_val]];  
    		life_shop_npc setVariable["sellers",_array,true];  
    	} else {  
    		_array pushBack [getPlayerUID player,profileName,_price];  
    		life_shop_npc setVariable["sellers",_array,true];  
    	};  
    };  
    
    [0] call SOCK_fnc_updatePartial;  
    [3] call SOCK_fnc_updatePartial;
    
  • Il est dit dans les logs “line 65” sauf qu’il n’y en a pas :/

  • Résolu par moi même en enlevant la bourse que j’avais mis il y a longtemps.

Messages 3Vues 35
Se connecter pour répondre