ACE3/addons/common/functions/fnc_hashListPush.sqf

16 lines
324 B
Plaintext
Raw Normal View History

2015-01-14 21:29:52 +00:00
//fnc_hashListPush.sqf
#include "script_component.hpp"
2015-05-14 18:06:06 +00:00
PARAMS_2(_hashList,_value);
2015-01-14 21:29:52 +00:00
ERRORDATA(2);
try {
2015-02-19 18:14:52 +00:00
if(VALIDHASH(_hashList)) then {
[_hashList, (count (_hashList select 1)), _value] call FUNC(hashListSet);
} else {
ERROR("Input hashlist in push not valid");
};
2015-01-14 21:29:52 +00:00
} catch {
2015-02-19 18:14:52 +00:00
HANDLECATCH;
2015-01-14 21:29:52 +00:00
};