Discord Moderators Pirulax Posted August 25, 2017 Discord Moderators Share Posted August 25, 2017 Okey, so i have made a script, a logging script, it logs litterally everything, and has 3 exported functions, they are used to create log files, but for some reason, when i want to call them from a separate script using call function["exports.*"] it just throws me an error.["failed to call 'fall_log:createLog'"].I can use the functions in the same script["fall_log"], but cant use somewhere else, for example in "fall_admin-system", indicating, that the script in "fall_log" works correctly, so any ideas?Here's my call[every argument is valid, and not not, if it matters.]: exports.fall_log:createLog("This is a test","fall_admin/log.json") I still dont rly want to give out the script for fall_log, but if i really need, then okey. Link to comment
DiGiTal Posted August 25, 2017 Share Posted August 25, 2017 you added the exports to your meta file? @Pirulax Link to comment
Discord Moderators Pirulax Posted August 25, 2017 Author Discord Moderators Share Posted August 25, 2017 Did i forgot to mention, that i added them?Yeah, i added them. <function export="addLog" type="server" /> <function export="saveLog" type="server" /> <function export="createLog" type="server" /> I tried to use the function from server. Link to comment
Jayceon Posted August 25, 2017 Share Posted August 25, 2017 Not good format. The correct format is: <export function="addLog" type="server" /> <export function="saveLog" type="server" /> <export function="createLog" type="server" /> 2 Link to comment
Discord Moderators Pirulax Posted August 25, 2017 Author Discord Moderators Share Posted August 25, 2017 (edited) Yeah, this is when you are tired.....Thanks a lot Very amateur mistake by me. Dropped you a like (Reputation) Edited August 25, 2017 by Pirulax 1 Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now