Jump to content

EPOCH_startNpcTrade.sqf


He-Man

Recommended Posts

Hi,

by trying to sell a temp vehicle (not listes in DB) I have the problem, that no more trading is possible until relog.

Found out the following:

- Client sets the Variable EPOCH_TRADE_STARTED = true

- When selling a temp vehicle, " if (!(_arrayIn isEqualTo[]) || !(_arrayOut isEqualTo[])) then { ..." will not be true

- "EPOCH_TRADE_STARTED = nil;" will only be set, if the above is true

 

 

I think the following lines have to be before the LAST };

    EPOCH_TRADE_COMPLETE = nil;
    EPOCH_TRADE_STARTED = nil;

 

So the End must shown like this:

                else {
                    _errorMsg = 'Failed To Purchase Items';
                    _dt = [format["<t size='0.8' shadow='0' color='#99ffffff'>%1</t>", _errorMsg], 0, 0.4, 5, 2, 0, 2] spawn bis_fnc_dynamictext;
                };
            };

        };
    };
    EPOCH_TRADE_COMPLETE = nil;
    EPOCH_TRADE_STARTED = nil;
};

 

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...