Verkaufen von Z items funktioniert nicht wie kann ich es fixen ?
Verkaufen von Z items funktioniert nicht!
-
jeremypapa -
10. Juni 2017 um 22:42 -
Geschlossen -
Erledigt
Hinweis zur Zukunft von Nodezone
Das neue Nodezone befindet sich in der finalen Entwicklungsphase. Mit dem geplanten Start wird das bisherige Forum auf Read Only umgestellt und künftig als Archiv erhalten bleiben.
Alle Informationen zur neuen Plattform, zur Accountübernahme und zum weiteren Ablauf findest du hier: Zum aktuellen Nodezone Beitrag
Das neue Nodezone befindet sich in der finalen Entwicklungsphase. Mit dem geplanten Start wird das bisherige Forum auf Read Only umgestellt und künftig als Archiv erhalten bleiben.
Alle Informationen zur neuen Plattform, zur Accountübernahme und zum weiteren Ablauf findest du hier: Zum aktuellen Nodezone Beitrag
-
-
Wie wärs mit mehr Infos, RPT Log?
-
Verkaufen von Z items funktioniert nicht wie kann ich es fixen ?
Sorry aber diese Frage ist totaler Stuhlgang

Merkst aber selber oder ?
- Was hast du zuletzt gemacht ?
- RPT Log ?
bitte sei so gut und drücke dich nächstes mal etwas präziser aus . Danke
-
Sorry aber diese Frage ist totaler Stuhlgang

Merkst aber selber oder ?
- Was hast du zuletzt gemacht ?
- RPT Log ?
bitte sei so gut und drücke dich nächstes mal etwas präziser aus . Danke
Logs sind jetzt vorhanden sorry

-
Wie wärs mit mehr Infos, RPT Log?
Logs sind jetzt da sorry
-
schlägt ins Auge oder ??
Code
Alles anzeigen22:24:05 Error in expression <x","_price","_amount","_name"]; if(EQUAL(lbCurSel 2402,-1)) exitWith {}; _type => 22:24:05 Error position: <(lbCurSel 2402,-1)) exitWith {}; _type => 22:24:05 Error Missing ) 22:24:05 File core\shops\fn_virt_sell.sqf [life_fnc_virt_sell], line 65 22:24:05 Error in expression <x","_price","_amount","_name"]; if(EQUAL(lbCurSel 2402,-1)) exitWith {}; _type => 22:24:05 Error position: <(lbCurSel 2402,-1)) exitWith {}; _type => 22:24:05 Error Missing ) 22:24:05 File core\shops\fn_virt_sell.sqf -
Kein Plan welche Version du nutzt, aber ersetz mal deine sqf mit der hier :
Code
Alles anzeigen#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 ((lbCurSel 2402) isEqualTo -1) exitWith {}; _type = lbData[2402,(lbCurSel 2402)]; _price = M_CONFIG(getNumber,"VirtualItems",_type,"sellPrice"); if (_price isEqualTo -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"}; if ((time - life_action_delay) < 0.2) exitWith {hint localize "STR_NOTF_ActionDelay";}; life_action_delay = time; _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]; CASH = CASH + _price; [] call life_fnc_virt_update; }; if (life_shop_type isEqualTo "drugdealer") then { private["_array","_ind","_val"]; _array = life_shop_npc getVariable["sellers",[]]; _ind = [getPlayerUID player,_array] call TON_fnc_index; if (!(_ind isEqualTo -1)) then { _val = ((_array select _ind) select 2); _val = _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]; }; }; if (life_shop_type isEqualTo "gold" && (LIFE_SETTINGS(getNumber,"noatm_timer")) > 0) then { [] spawn { life_use_atm = false; sleep ((LIFE_SETTINGS(getNumber,"noatm_timer")) * 60); life_use_atm = true; }; }; [0] call SOCK_fnc_updatePartial; [3] call SOCK_fnc_updatePartial; -
Funkt wieder danke an alle!!!