Jump to content
  • 0
Sign in to follow this  
sjd6795

Error in carge_trucks?

Question

Getting this error in my RPT for line 84 of my event script. This is line 84 in the script _vehclass = cargo_trucks call BIS_fnc_selectRandom;

6:00:02 Error in expression <all BIS_fnc_selectRandom; _vehclass = cargo_trucks call BIS_fnc_selectRandom; > 6:00:02 Error position: <cargo_trucks call BIS_fnc_selectRandom; > 6:00:02 Error Undefined variable in expression: cargo_trucks 6:00:02 File z\addons\dayz_server\modules\event1.sqf, line 84

 

Share this post


Link to post
Share on other sites

4 answers to this question

Recommended Posts

  • 0
18 hours ago, sjd6795 said:

Getting this error in my RPT for line 84 of my event script. This is line 84 in the script _vehclass = cargo_trucks call BIS_fnc_selectRandom;

6:00:02 Error in expression <all BIS_fnc_selectRandom; _vehclass = cargo_trucks call BIS_fnc_selectRandom; > 6:00:02 Error position: <cargo_trucks call BIS_fnc_selectRandom; > 6:00:02 Error Undefined variable in expression: cargo_trucks 6:00:02 File z\addons\dayz_server\modules\event1.sqf, line 84

 

That's nice, thanks for sharing... :biggrin:

Did you read that error?
Your custom added, event1.sqf, has an undefined variable that needs fixing.

Share this post


Link to post
Share on other sites
  • 0

Thats nice, thanks for sharing.. your useful reply.

Yea.. I know that much. You could reply something useful to the topic or dont reply at all. I dont know where the undefined variable is everything looks fine and line 84 only has that single line of code in the OP.

Share this post


Link to post
Share on other sites
  • 0

That array

cargo_trucks

  is in WAI here:

https://github.com/worldwidesorrow/WICKED-AI/blob/master/WAI/config.sqf#L189

If you don't have WAI installed, then it is undefined as Helion4 suggested. Instead you can just declare your variable using one of the cargo truck classnames like this:

_vehclass = "MTVR_DES_EP1";

That will solve your problem.

Share this post


Link to post
Share on other sites
  • 0
On 11/5/2018 at 11:17 PM, sjd6795 said:

Thats nice, thanks for sharing.. your useful reply.

Yea.. I know that much. You could reply something useful to the topic or dont reply at all. I dont know where the undefined variable is everything looks fine and line 84 only has that single line of code in the OP.

Are you for real?
Firstly I thought the smily face was enough of a hint towards a fun little jibe...
Secondly, where in your o.p was the question or the request for help? If you cant be arsed to even type out what it is you came here for, then dont expect people to take it seriously, Snowflake.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

  • Advertisement
  • Supporters
  • Discord

×
×
  • Create New...