MechSlayer 18 Posted February 20, 2019 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
pierremgi 4432 Posted February 20, 2019 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
MechSlayer 18 Posted February 20, 2019 That didn't work. The server won't create the database Share this post Link to post Share on other sites
pierremgi 4432 Posted February 20, 2019 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
HazJ 1286 Posted February 21, 2019 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