Fix PV value kick for player names with special characters

Vanilla development commit:

6b7a55b1ea
This commit is contained in:
ebaydayz
2016-07-25 13:37:33 -04:00
parent 97a03c84d0
commit 28a522ba64
2 changed files with 4 additions and 3 deletions

View File

@@ -1935,7 +1935,7 @@ 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,(name vehicle player)];" \n "PVDZ_plr_LoginRecord = [_playerUID,_charID,0,toArray (name vehicle player)];" \n
"" \n "" \n
"progressLoadingScreen 1;" \n "progressLoadingScreen 1;" \n
"" \n "" \n

View File

@@ -228,7 +228,7 @@ dayz_objectUID2 = {
}; };
dayz_recordLogin = { dayz_recordLogin = {
private ["_key","_status"]; private ["_key","_status","_name"];
_key = format["CHILD:103:%1:%2:%3:",_this select 0,_this select 1,_this select 2]; _key = format["CHILD:103:%1:%2:%3:",_this select 0,_this select 1,_this select 2];
_key call server_hiveWrite; _key call server_hiveWrite;
@@ -238,7 +238,8 @@ dayz_recordLogin = {
case ((_this select 2) == 2): { "LOGGED OUT" }; case ((_this select 2) == 2): { "LOGGED OUT" };
}; };
diag_log format["INFO - Player: %1(UID:%3/CID:%4) Status: %2",(_this select 3),_status,(_this select 0),(_this select 1)]; _name = if (typeName (_this select 3) == "ARRAY") then { toString (_this select 3) } else { _this select 3 };
diag_log format["INFO - Player: %1(UID:%3/CID:%4) Status: %2",_name,_status,(_this select 0),(_this select 1)];
}; };
dayz_reseed = { dayz_reseed = {