Blahman919
New Member
I don't seem to be getting the errors much anymore, but it's not switching to night now. Looking into it.
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
17:48:57 Error in expression <ey","_result","_outcome"];
if (isnight ==false) then {
_key = "CHILD:307:";
_re>
17:48:57 Error position: <==false) then {
_key = "CHILD:307:";
_re>
17:48:57 Error ==: Type Bool, expected Number,String,Object,Side,Group,Text,Config entry,Display (dialog),Control,Team member,Task,Location
17:48:57 File z\addons\dayz_server\init\server_functions.sqf, line 739
17:48:57 Error in expression <ey","_result","_outcome"];
if (isnight ==false) then {
_key = "CHILD:307:";
_re>
17:48:57 Error position: <==false) then {
_key = "CHILD:307:";
_re>
17:48:57 Error Generic error in expression
19:44:20 Error in expression <_date = [2013,8,3,_hour,_minute];
};
}
else (isnight == 1) then {
_date = [2013>
19:44:20 Error position: <else (isnight == 1) then {
_date = [2013>
19:44:20 Error else: Type Bool, expected code
19:44:20 File z\addons\dayz_server\init\server_functions.sqf, line 751
19:44:20 Error in expression <_date = [2013,8,3,_hour,_minute];
};
}
else (isnight == 1) then {
_date = [2013>
19:44:20 Error position: <else (isnight == 1) then {
_date = [2013>
19:44:20 Error Generic error in expression
_TimeToNight = 3; //Time in minutes before night time
isnight = 0;
r_DoLoop = true;
_TimeToNight = _TimeToNight * 60 + 1; //Set time to seconds
while {r_DoLoop} do {
if (_TimeToNight >= 0) then { //Repeat until time is 0
_TimeToNight = _TimeToNight - 1; //Subtract one second each loop
diag_log format["TIMETONIGHT = %1",_timetonight];
};
if (_TimeToNight == 0) then {
diag_log format["Nighttime Loop ending"];
diag_log format["ISNIGHT = %1",isnight];
isnight = 1;
publicVariable "isnight";
r_DoLoop = false; //End the loop
diag_log format["ISNIGHT = %1",isnight];
};
sleep 1;
};
_TimeToNight = 3; //Time in minutes before night time
isnight = 0;
_TimeToNight = _TimeToNight * 60 + 1; //Set time to seconds
while {true} do {
if (_TimeToNight == 0) exitWith { //End the loop
isnight = 1;
publicVariable "isnight";
diag_log format["Nighttime Loop ending"];
diag_log format["ISNIGHT = %1",isnight];
};
_TimeToNight = _TimeToNight - 1; //Subtract one second each loop
diag_log format["TIMETONIGHT = %1",_timetonight];
sleep 1;
};
_TimeToNight = 3; //Time in minutes before night time
isnight = 0;
_TimeToNight = _TimeToNight * 60 + 1; //Set time to seconds
while {true} do {
if (_TimeToNight < 1) exitWith { //End the loop
isnight = 1;
publicVariable "isnight";
diag_log format["Nighttime Loop ending"];
diag_log format["ISNIGHT = %1",isnight];
};
_TimeToNight = _TimeToNight - 5; //Subtract one second each loop
diag_log format["TIMETONIGHT = %1",_timetonight];
sleep 5;
};
isnight = false;
_TimeToNight = time + 181; //Time in seconds before night time
while {true} do {
if (_TimeToNight <= time) exitWith { //End the loop
isnight = true;
publicVariable "isnight";
diag_log "Nighttime Loop ending";
//diag_log format["ISNIGHT = %1",isnight];
};
//diag_log format["TIMETONIGHT = %1",(_TimeToNight - time)];
sleep 1;
};