DynamicMarket icon indicating copy to clipboard operation
DynamicMarket copied to clipboard

Error position: <_pricearray < 1) then {

Open GenApophis opened this issue 9 years ago • 1 comments

Hi Ryan, after i installed everything like you wrote in your "Installation Instruktion.txt" and now every time the Server Start's i get this error:

10:18:06 Error in expression <rray = _queryResult select 0; if (count _pricearray < 1) then { diag_log "######> 10:18:06 Error position: <_pricearray < 1) then { diag_log "######> 10:18:06 Error Undefined variable in expression: _pricearray 10:18:06 File life_server\Functions\DynMarket\fn_HandleDB.sqf, line 38 10:18:07 Error in expression <rray = _queryResult select 0; if (count _pricearray < 1) then { diag_log "######> 10:18:07 Error position: <_pricearray < 1) then { diag_log "######> 10:18:07 Error Undefined variable in expression: _pricearray 10:18:07 File life_server\Functions\DynMarket\fn_HandleDB.sqf, line 38

can you help me fixing it???

Best reguard's Chris aka GenApophis

GenApophis avatar Jun 21 '16 09:06 GenApophis

You need to make sure you have installed the sql properly. It's not defined because _pricearray is being set from _query but _query can't set it's array properly because it can't find it so it's undefined.

It is because you have no array defined in dynmarket.

INSERT INTO dynmarket VALUES (1,'[]');

TzuyuHook avatar Jul 19 '20 14:07 TzuyuHook