22 lines
682 B
Plaintext
22 lines
682 B
Plaintext
/*
|
|
File: fn_wantedPerson.sqf
|
|
Author: Bryan "Tonic" Boardwine"
|
|
Database Persistence By: ColinM
|
|
Assistance by: Paronity
|
|
Stress Tests by: Midgetgrimm
|
|
|
|
This file is for Nanou's HeadlessClient.
|
|
|
|
Description:
|
|
Fetches a specific person from the wanted array.
|
|
*/
|
|
private ["_unit","_index","_queryResult","_result"];
|
|
_unit = [_this,0,objNull,[objNull]] call BIS_fnc_param;
|
|
if (isNull _unit) exitWith {[]};
|
|
_uid = getPlayerUID player;
|
|
|
|
_query = format ["SELECT wantedID, wantedName, wantedBounty FROM wanted WHERE active='1' AND wantedID='%1'",_uid];
|
|
_queryResult = [_query,2] call HC_fnc_asyncCall;
|
|
if (_queryResult isEqualTo []) exitWith {[]};
|
|
_queryResult;
|