I'm not sure if this has already been posted. Had a quick look but could not see it (Oh for a search function!).
I've just found out that Function's in #INCLUDE's return a value of zero if ENDFUNCTION is used. If you hard-code the value then it works.
Here's a quick test. This first code is the main project and was saved as test.dba:
Rem Project: test
#include "test2.dba"
print test1()
print test2()
wait key
This second code was the INCLUDE file and was saved as test2.dba:
Rem *** Include File: test2.dba ***
function test1()
result = 1
endfunction result
function test2()
endfunction 2
You would expect the output to be 1 and 2 but, no, it's 0 and 2. If you move the test1 function into test.dba it works fine.
Oh patch 2, where art thou!!!!!!
System: 1.333Ghz Athlon Thunderbird, 512meg, Geforce 4 Ti 4400.
Hardware /nm./: the part of the computer that you can kick.