fixed Generic error in expression

when player object was null the function would throw an error. Thanks to
@ReDBaroN1 for the report!
This commit is contained in:
vbawol 2016-12-10 08:10:31 -06:00
parent 9856601229
commit 4f86c913d8

View File

@ -21,22 +21,18 @@ switch (_command) do {
case 'kick': {
_playerUID = _param1;
if (_playerUID isEqualType objNull) then{
if (!isNull(_playerUID)) then{
_playerUID = getPlayerUID _playerUID;
};
_playerUID = getPlayerUID _playerUID;
};
if (_playerUID != '') then{
if !(_playerUID isEqualTo '') then{
'epochserver' callExtension format['911|%1|%2', _playerUID, _param2];
};
};
case 'ban': {
_playerUID = _param1;
if (_playerUID isEqualType objNull) then{
if (!isNull(_playerUID)) then{
_playerUID = getPlayerUID _playerUID;
};
_playerUID = getPlayerUID _playerUID;
};
if (_playerUID != '') then{
if !(_playerUID isEqualTo '') then{
'epochserver' callExtension format['921|%1|%2|%3', _playerUID, _param2, _param3];
};
};