Show distance/limit in failed distance verification check

This commit is contained in:
oiad
2019-10-30 22:17:18 +13:00
parent cc85067f1f
commit 12f9e16407

View File

@@ -21,7 +21,7 @@ _exitReason = switch true do {
//If object or player was moved with setPos on client, position takes a second to update on server //If object or player was moved with setPos on client, position takes a second to update on server
//Coordinates can be used in place of object //Coordinates can be used in place of object
case (_objPos distance _player > (Z_VehicleDistance + 10)): { case (_objPos distance _player > (Z_VehicleDistance + 10)): {
format["%1 error: Verification failed, player is too far from object. PV ARRAY: %2",_function,_params] format["%1 error: Verification failed, player is too far from object. Distance: %2m/%3m limit PV ARRAY: %4",_function,round (_objPos distance _player),Z_VehicleDistance + 10,_params]
}; };
case (_index < 0): { case (_index < 0): {
format["%1 error: PUID NOT FOUND ON SERVER. PV ARRAY: %2",_function,_params] format["%1 error: PUID NOT FOUND ON SERVER. PV ARRAY: %2",_function,_params]