ZarX Posted July 18, 2014 Report Share Posted July 18, 2014 Error from RPT. if (count AllowedVehiclesList == 0) then { diag_lo> 6:06:07 Error position: <AllowedVehiclesList == 0) then { diag_lo> 6:06:07 Error Undefined variable in expression: allowedvehicleslist 6:06:07 File z\addons\dayz_server\init\server_functions.sqf, line 263 6:06:07 Error in expression <esList resize _lastIndex; }; and here is the area it references. if (!isDedicated) exitWith { }; //Be sure the run this while {count AllowedVehiclesList > 0} do { // BIS_fnc_selectRandom replaced because the index may be needed to remove the element _index = floor random count AllowedVehiclesList; _random = AllowedVehiclesList select _index; _vehicle = _random select 0; _velimit = _random select 1; _qty = {_x == _vehicle} count serverVehicleCounter; // If under limit allow to proceed if (_qty <= _velimit) exitWith {}; // vehicle limit reached, remove vehicle from list // since elements cannot be removed from an array, overwrite it with the last element && cut the last element of (as long as order is not important) _lastIndex = (count AllowedVehiclesList) - 1; if (_lastIndex != _index) then { AllowedVehiclesList set [_index, AllowedVehiclesList select _lastIndex]; }; AllowedVehiclesList resize _lastIndex; }; I can't find the issue anywhere. I've looked at it with older files and even fresh files and I can't find the why this error happens. Link to comment Share on other sites More sharing options...
0 Gr8 Posted July 18, 2014 Report Share Posted July 18, 2014 Do u have a deploy bike script running? Link to comment Share on other sites More sharing options...
0 insertcoins Posted July 18, 2014 Report Share Posted July 18, 2014 Error position: <AllowedVehiclesList == 0) then { That does not occur in the section you have posted Link to comment Share on other sites More sharing options...
0 ZarX Posted July 19, 2014 Author Report Share Posted July 19, 2014 Yeah Greatboi I do, but the bike is in the allowedvehicle list.. Insert that is where line 263 points to in my server functions. Link to comment Share on other sites More sharing options...
0 TheVampire Posted July 19, 2014 Report Share Posted July 19, 2014 Yeah Greatboi I do, but the bike is in the allowedvehicle list.. Insert that is where line 263 points to in my server functions. while {count AllowedVehiclesList > 0} do { and if (count AllowedVehiclesList == 0) then { aren't the same lines of code. The code area you posted doesn't match the error. Link to comment Share on other sites More sharing options...
0 ZarX Posted July 19, 2014 Author Report Share Posted July 19, 2014 I know it doesn't match that is why i was asking.. In my server functions the area i posted is what the error line is pointing to. Link to comment Share on other sites More sharing options...
0 Gr8 Posted July 19, 2014 Report Share Posted July 19, 2014 post your server_functions.sqf. I think your list has a invalid classname Link to comment Share on other sites More sharing options...
0 PryMary Posted July 19, 2014 Report Share Posted July 19, 2014 1) open dynamic_vehicles in your server.pbo -> make sure all but the last line have a: , If all have and are correct then; 2) increase all dynamic_vehicles by 1 or 2 each in dynamic_vehicles in your servers.pbo then open init.sqf in your mission.pbo increase max vehicles by 50 - 100 Your issue should be resolved. Pry EDIT: I had the exact same report in my RPT on 2 separate servers, 1 was because I had missed out an , in the middle of the list and the 2nd was because i needed increase the vehicle amount in the dynamic vehicle list as not enough were available to spawn. Link to comment Share on other sites More sharing options...
0 Defent Posted July 19, 2014 Report Share Posted July 19, 2014 Lower the settings in your init.sqf. Set MaxVehicleLimit to around 300-400, that should remove the problem. Link to comment Share on other sites More sharing options...
0 Gr8 Posted July 19, 2014 Report Share Posted July 19, 2014 Lower the settings in your init.sqf. Set MaxVehicleLimit to around 300-400, that should remove the problem. off topic, but why does your cherno server have 49 players and panthera 1? just dont anwser it. i am just playing Link to comment Share on other sites More sharing options...
0 Defent Posted July 19, 2014 Report Share Posted July 19, 2014 off topic, but why does your cherno server have 49 players and panthera 1? just dont anwser it. i am just playing I don't know. People flock to servers with more than 25 players on them I suppose. My napf server is more active but I have not gotten around to changing the signature. Also, I don't know if you're making fun of me or not. Link to comment Share on other sites More sharing options...
Question
ZarX
Link to comment
Share on other sites
10 answers to this question
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now