It works for me... I called it like this:
StartGame() and like this:
StartGame and it worked both ways! I see no reason why that isn't working for you.
Here's my code:
rem Begin Game
startgame()
make object sphere 1,10
do
turn object left 1,1
sync
loop
function startgame()
sync on
sync rate 60
hide mouse
endfunction
This works too:
rem Begin Game
startgame
make object sphere 1,10
do
turn object left 1,1
sync
loop
function startgame()
sync on
sync rate 60
hide mouse
endfunction
Maybe you're doing somethging else wrong in your code and DBC is giving you the wrong line number?