initial commit

This commit is contained in:
Benjamin Kyd
2019-06-05 00:45:50 +01:00
commit c8014ec81e
610 changed files with 177002 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
/*
File: fn_bool.sqf
Author: TAW_Tonic
Description:
Handles bool conversion for MySQL since MySQL doesn't support 'true' or 'false'
instead MySQL uses Tinyint for BOOLEAN (0 = false, 1 = true)
*/
private ["_bool","_mode"];
_bool = [_this,0,0,[false,0]] call BIS_fnc_param;
_mode = [_this,1,0,[0]] call BIS_fnc_param;
switch (_mode) do {
case 0: {
if (_bool isEqualType 0) exitWith {0};
if (_bool) then {1} else {0};
};
case 1: {
if (!(_bool isEqualType 0)) exitWith {false};
switch (_bool) do {
case 0: {false};
case 1: {true};
};
};
};