Hi Ive posted this question on the Ngc forum but havent gotten this problem solved and I am anxious to get working again
.
Im using subroutines and Im also using functions and I keep on getting this error "Function Must Be Declared outside program nests" when I already have the functions below the subroutines. All subroutines has the Return closing statement. When I place the functions above the subroutines i get "Function Declaration 'NGC_endapp' must be outside any program nests at line 5737" I have no function by that name so im guessing this is happening because the function using ngc is being called before the dll. So my question is how do I get my subroutines working? The code is too long to post so I will give you an idea of how it is set up.
gosub section1
section1:
do
non ngc stuff here
if upkey()=1 then gosub section2
loop
return
section2:
sync on
sync 60
objects made here
ncg called here w/ all basic info
do
collisions setup
runcollisionpro()
sync
loop
return
`Ive tried putting the functions here
functions go here/ but have tried putting at begining under the gosub section1 piece
3 of the functions here contain ngc info such as collisions etc..
The code was working before I arranged it to subroutines btw
Thanks in Advance