mirror of
https://github.com/EpochModTeam/Epoch.git
synced 2024-08-30 18:22:13 +00:00
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:
parent
9856601229
commit
4f86c913d8
@ -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];
|
||||
};
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user