if (count Allowed>
8:07:43 Error Zero divisor
8:07:43 File z\addons\dayz_server\init\server_functions.sqf, line 266
8:07:43 "DEBUG: unable to find suitable vehicle to spawn"
8:07:43 Error in expression <esList set [_index, AllowedVehiclesList select _lastIndex];
};
AllowedVehiclesLi>
8:07:43 Error position: <select _lastIndex];
};
AllowedVehiclesLi>
8:07:43 Error Zero divisor
8:07:43 File z\addons\dayz_server\init\server_functions.sqf, line 264
8:07:43 Error in expression <ect _lastIndex];
};
AllowedVehiclesList resize _lastIndex;
};
my server functions file of them lines
// vehicle limit reached, remove vehicle from list
// since elements cannot be removed from an array, overwrite it with the last element and 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];
};
could this have something to do with why i have so many cars spawning?
Question
carl101
my rpt error
this is just constantly repeating itself
my server functions file of them lines
// vehicle limit reached, remove vehicle from list
// since elements cannot be removed from an array, overwrite it with the last element and 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];
};
could this have something to do with why i have so many cars spawning?
cheers
Link to comment
Share on other sites
1 answer to this question
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now