Jump to content
Sign in to follow this  
arma3 academic

call OO_ININDBI

Recommended Posts

_clientID = clientOwner;

_UID = getPlayerUID player;

_name = name player;

checkForDatabase = [_clientID, _UID, _name];

publicVariableServer "checkForDatabase";


 

"checkForDatabase" addPublicVariableEventHandler

{

 

    private ["_data"];

    _data = (_this select 1);

    _clientID = (_data select 0);

    _UID = (_data select 1);

    _playerName = (_data select 2);

 

     

    _inidbi = ["new", "_UID"] call OO_INIDBI;

    _fileExist = "exists" call _inidbi;

 

    if(_fileExist) then

    {

        hint "FILE DOSE EXIST, GETTING DATA";

    }

    else

    {

        hint "FILE DOSE NOT EXIST, CREATING DATABASE";

    };

};

 

OUTPUT ------------------------------------------------------------
always that return "FILE DOSE NOT EXIST, CREATING DATABASE".
What is the problem?

Share this post


Link to post
Share on other sites

🤷‍♂️ at a guess _inidbi always returns false.

  • Like 1

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×