mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-04-18 10:16:39 +03:00
Localize sell and buy only messages
PrimaryWeapon always returns "", never nil unless the player object isNull (in which case this script would not be running). Fixed cases where a nil variable would throw an error when checking the next condition.
This commit is contained in:
@@ -211,7 +211,7 @@ if (_enoughMoney) then {
|
||||
_count = 0;
|
||||
while {_count < (_x select 9)} do {
|
||||
_p = primaryWeapon player;
|
||||
_hasPrimary = if (!isNil "_p" && _p != "") then {true} else {false};
|
||||
_hasPrimary = if (_p != "") then {true} else {false};
|
||||
if (_hasPrimary && getNumber (configFile >> "CfgWeapons" >> (_x select 0) >> "type") == 1) then {
|
||||
dayz_onBack = _x select 0; //Add to back
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user