if (!(_unit getVariable "restrained")) exitWith {}; //He's not restrained.
Error in expression <w select 2] call TON_fnc_setPlayTime;
_player setVariable ["JailTime",(_queryR>
Error position: <_player setVariable ["JailTime",(_queryR>
Error Undefined variable in expression: _player
File life_server\Functions\MySQL\fn_queryRequest.sqf..., line 125
if (isNull _ownerID) exitWith {};
_player = _ownerID;
#include "..\..\script_macros.hpp"
/*
Player clicked arrest/ok
*/
systemChat "script called";
private ["_time"];
if(playerSide != west) exitWith {systemChat "bad side"};
if(isNil "life_pInact_curTarget") exitWith {systemChat "bad variable"};
systemChat "ok";
//Get minutes
_time = ctrlText 1400;
if(! ([_time] call TON_fnc_isnumber)) exitWith {
hint localize "STR_ATM_notnumeric";
};
_time = parseNumber _time; //requested number
_time = round _time;
if(_time < 5 || _time > 120) exitWith { hint "Die Zeit muss zwischen 5 und 120 Minuten sein!"; };
closeDialog 0;
[life_pInact_curTarget, _time] call life_fnc_arrestAction;
systemChat "finish";
if (!(_unit getVariable "restrained")) exitWith {}; //He's not restrained.