mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 12:12:34 +03:00
Prevent 'name' error when player is killed while logging in
Prevents WARNING: Function 'name' - x is dead when player is killed while logging in.
This commit is contained in:
@@ -1942,12 +1942,13 @@ class FSM
|
|||||||
itemno = 106;
|
itemno = 106;
|
||||||
init = /*%FSM<STATEINIT""">*/"if (_debug == 1) then {diag_log [diag_tickTime,'Finish'];};" \n
|
init = /*%FSM<STATEINIT""">*/"if (_debug == 1) then {diag_log [diag_tickTime,'Finish'];};" \n
|
||||||
"" \n
|
"" \n
|
||||||
"PVDZ_plr_LoginRecord = [_playerUID,_charID,0,toArray (name vehicle player)];" \n
|
"dayz_playerName = if (alive player) then {name player} else {'unknown'};" \n
|
||||||
|
"PVDZ_plr_LoginRecord = [_playerUID,_charID,0,toArray dayz_playerName];" \n
|
||||||
"" \n
|
"" \n
|
||||||
"" \n
|
"" \n
|
||||||
"progressLoadingScreen 1;" \n
|
"progressLoadingScreen 1;" \n
|
||||||
"" \n
|
"" \n
|
||||||
"diag_log format ['Sent to server PVDZ_plr_LoginRecord: [%1, %2, %3, %4]',_playerUID,_charID,0,(name vehicle player)]; " \n
|
"diag_log format ['Sent to server PVDZ_plr_LoginRecord: [%1, %2, %3, %4]',_playerUID,_charID,0,dayz_playerName]; " \n
|
||||||
"" \n
|
"" \n
|
||||||
"_world = toUpper(worldName); //toUpper(getText (configFile >> ""CfgWorlds"" >> (worldName) >> ""description""));" \n
|
"_world = toUpper(worldName); //toUpper(getText (configFile >> ""CfgWorlds"" >> (worldName) >> ""description""));" \n
|
||||||
"_nearestCity = nearestLocations [getPos player, [""NameCityCapital"",""NameCity"",""NameVillage"",""NameLocal""],1000];" \n
|
"_nearestCity = nearestLocations [getPos player, [""NameCityCapital"",""NameCity"",""NameVillage"",""NameLocal""],1000];" \n
|
||||||
|
|||||||
@@ -11,7 +11,6 @@ while {true} do {
|
|||||||
};
|
};
|
||||||
if ((!isNil "Dayz_loginCompleted") and {(Dayz_loginCompleted)}) exitWith {
|
if ((!isNil "Dayz_loginCompleted") and {(Dayz_loginCompleted)}) exitWith {
|
||||||
//diag_log [ __FILE__, __LINE__, "End loop"];
|
//diag_log [ __FILE__, __LINE__, "End loop"];
|
||||||
dayz_playerName = if (alive player) then {name player} else {"unknown"};
|
|
||||||
if (dayz_groupSystem) then {execVM "\z\addons\dayz_code\groups\init.sqf";};
|
if (dayz_groupSystem) then {execVM "\z\addons\dayz_code\groups\init.sqf";};
|
||||||
};
|
};
|
||||||
_display = uiNameSpace getVariable "BIS_loadingScreen";
|
_display = uiNameSpace getVariable "BIS_loadingScreen";
|
||||||
|
|||||||
Reference in New Issue
Block a user