Jump to content
MechSlayer

inidbi with remoteExec?

Recommended Posts

Hey, i'd like to create and modify a database with inidbi without putting the code inside initServer.sqf. I tried using remoteExec but it won't work. Here's my code:

iniPlayerLocal.sqf

_Nombre = name player;
_BD = ["new", _Nombre] call OO_INIDBI;
[_BD, _Nombre] call Mech_fnc_login;

fn_login.sqf

_BD = (_this select 0);
_Nombre = (_this select 1);
[["write", ["test", "test", "test"]], _BD] remoteExec ["call", 2, true];

 

Share this post


Link to post
Share on other sites

remoteExec ["call",2,true] doesn't work. You can't JIP for server. Just write remoteExec ["call",2] ...

regardless of what you intend to to.

Share this post


Link to post
Share on other sites
8 minutes ago, MechSlayer said:

That didn't work. The server won't create the database

An error can hide another one.

 

Share this post


Link to post
Share on other sites

Why remoteExec in the first place? The DB should only be on server. Take a look at the documentation for inidbi as well. Will teach you quite a lot. There is also inidbi2 which is newer. I would create function on server to handle DB requests. Pass whatever arguments are needed, etc...

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

×