I'm going to simply repost my snippets with .dba extensions, maybe this will clear up confusion about what I am trying to do:
test.dba
#include "login.dba"
#include "logout.dba"
print "If ya see this then yay!"
do:loop
login.dba
function login(user$,pass$)
x=x+1
endfunction
logout.dba
function logout(user$,pass$)
y=y+1
endfunction
-All files are in the same directory.
-all extensions are .dba
-each function is a different name
-all functions have an endfunction
-darkbasic help says I can have 255 #include statements
Goin by the above snippets, this should work... but I get Syntax Error:Endfunction where a function was not declared. I'm failing to see why the snippets won't compile. It would be great if an actual darkbasic dev would look here lol.
Oh yea, to factor out my functions being bad... I can have login.dba and logout.dba be empty (nothing in the file) and it still tells me i have an endfunction where no function was declared... If I have no function at all, why tell me I have and endfunction with no function declared? that makes absolutely no sense.... -.-