Jump to content

overpoch chernarus vehicle trader wont spawn vehicles


zachtucker18

Recommended Posts

My issue is i cant get the vehicle trader to spawn vehicles it just pops up with the red arrow and then nothing. Another issue is that custom placed objects kinda take like 2 minutes to load into the game.

Things i have tried to do and troubleshooting:

works without infistar

cleared database

 

Scripts added:

infistar

single currency 3.0

rpt

 

1:35:54 "EPOCH SERVERTRADE: Player: ground hawg (76561198330073810) bought a Volha_2_TK_CIV_EP1 in/at trader city Stary for 5000x Coins"
21:35:54 Error in expression < _array select 5;
            _pos = _worldspace select 1;
            _txt = getText (configFile >
21:35:54   Error position: <select 1;
            _txt = getText (configFile >
21:35:54   Error select: Type Object, expected Array,Config entry

 

 

im almost 99% sure it has to do with infistar

 

the error is referring to ah.sqf and this bit of code

'PVDZE_veh_Publish2' addPublicVariableEventHandler
        {
            _array = (_this select 1);
            _worldspace = _array select 0;
            _class = _array select 1;
            _activatingPlayer = _array select 5;
            _pos = _worldspace select 1;
            _txt = getText (configFile >> 'CfgVehicles' >> _class >> 'displayName');
            if(isNull _activatingPlayer || {!isPlayer _activatingPlayer})exitWith {
                _log = format['Vehicle spawned without valid player %1 (%2) | Position: %3',_class,_txt,_pos];
                diag_log ('infiSTAR.de Log: '+_log);
            };

 

Link to comment
Share on other sites

  • 1 month later...
On 28/9/2016 at 4:10 PM, DuMa said:

Replace your whole block of code with this.


'PVDZE_veh_Publish2' addPublicVariableEventHandler
		{
			_array = (_this select 1);
			_worldspace = _array select 1;
			_class = _array select 2;
			_activatingPlayer = _array select 5;
			_pos = _worldspace select 1;
			_txt = getText (configFile >> 'CfgVehicles' >> _class >> 'displayName');
			if(isNull _activatingPlayer || {!isPlayer _activatingPlayer})exitWith {
				_log = format['Vehicle spawned without valid player %1 (%2) | Position: %3',_class,_txt,_pos];
				diag_log ('infiSTAR.de Log: '+_log);
			};

 

Will fix it 100% Tested it and working :D

Who ever done this iam so happy that i found this, i was having the same problem, thx alot

Good Day or Night (what ever time you guys are having)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...