BetterDeadThanZed Posted March 9, 2015 Report Share Posted March 9, 2015 I'm getting this error over and over in my log: DZMSPurgeObject = { _> 2:52:55 Error position: <_sleepTime;}; }; DZMSPurgeObject = { _> 2:52:55 Error Undefined variable in expression: _sleeptime 2:52:55 File z\addons\dayz_server\DZMS\DZMSFunctions.sqf, line 258 2:52:55 Error in expression <nterval; (diag_tickTime - _startTime) > _sleepTime;}; }; Any ideas? Line 258 of DZMSFunctions.sqf is this: waitUntil{sleep _checkInterval; (diag_tickTime - _startTime) > _sleepTime;}; Link to comment Share on other sites More sharing options...
DeanReid Posted March 9, 2015 Report Share Posted March 9, 2015 DZMSSleep = { private["_sleepTime","_checkInterval","_startTime"]; _sleepTime = _this select 0; _checkInterval = _this select 1; _startTime = diag_tickTime; waitUntil{sleep _checkInterval; (diag_tickTime - _startTime) > _sleepTime;}; }; Thats my DZMSSleep, I don't get that error :P Link to comment Share on other sites More sharing options...
BetterDeadThanZed Posted March 9, 2015 Author Report Share Posted March 9, 2015 DZMSSleep = { private["_sleepTime","_checkInterval","_startTime"]; _sleepTime = _this select 0; _checkInterval = _this select 1; _startTime = diag_tickTime; waitUntil{sleep _checkInterval; (diag_tickTime - _startTime) > _sleepTime;}; }; Thats my DZMSSleep, I don't get that error :P Same as mine. Link to comment Share on other sites More sharing options...
DeanReid Posted March 9, 2015 Report Share Posted March 9, 2015 try putting if (isNil "_sleepTime") then { _sleepTime = 0; }; above _sleepTime = _this select 0; Link to comment Share on other sites More sharing options...
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