Jump to content
  • 0

Error Undefined variable in expression: _vehicle in Server_functions


Green_Thumb

Question

Hi,

 

sometimes my RPT get spammed by this error:

 

18:06:05   Error Undefined variable in expression: _vehicle
18:06:05 File z\addons\dayz_server\init\server_functions.sqf, line 252
18:06:05 Error in expression <limit = _random select 1;
_qty = {_x == _vehicle} count serverVehicleCounter;

i>

 

Im running overpoch cherno with these scripts:

 

• Spawn selection with lodout
• Group management
• Door management
• Coins and Online Banking
• Advanced trading
• Fast trading
• Slow zombie
• Repair, refuel and reammo
• Build snap and vectors
• 1 step building
• Craft static guns with gems
• 350 parts building limit
• No weight system
• 60 meter plot poles
• Custom loottable
• Bank robbery
• Weed farms
• Superbanit and Superhero trader and loadout
• Special Chernarus Black Market Trader City (no safezone, sell drugs and special weapons)
• Take clothes
• Anti tank weapons
• Zombie free bases 30 meters around plot pole
• Right click actions - deploy bike/mozzie, suicide, flip vehicle

 

 

The lines in server_functions are matching the original epoch ones....

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 0

Either lower your spawn vehicle limit in your init.sqf : 

MaxVehicleLimit = 450;

Or raise the spawn vehicle limit in your dayz_server\missions\your_current_instance\dynamic_vehicle.sqf by changing the numbers at the ends : 

AllowedVehiclesList = [
["AH6X_DZ",3],
["AN2_DZ",3],
["ArmoredSUV_PMC_DZE",1],
["ATV_CZ_EP1",3],
["ATV_US_EP1",3],
["C130J_US_EP1",1],
["car_hatchback",3],
["car_sedan",3],
["CH_47F_EP1_DZE",1],
["CSJ_GyroC",3],
["CSJ_GyroCover",3],
etc.....
etc.....
etc.....

Next time you have an error, search google and epoch forums for the exact error (or the significant part). If you find nothing, THEN post about it. Most stuff (like this) has been answered a million times. :)

 

 

[Edit : Your search for the term _vehicle} count servervehiclecounter; returned 53 results]

 
See? :)
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...