Posted: 13th Sep 2011 19:50
HI All

I have added a new AGC file to my project and created a new function in that file. WHen I call the function in the main loop in Main.AGC I now get the following error:

"Could not understand command at line 143"

I have other functions in other AGC files that work fine? If I move this function into any of these files I get the same error. If I move it to Main.AGC it compiles?

The ErrorReport.TXT file in the media folder contains the following:

+ Code Snippet
PARSER ERROR
------------
Could not understand command at line 143.

PROGRAM TRACE
-------------
CSGame_Update()
        EndCase
    EndSelect

    Sync()
l

ERROR TRACE
-----------
Failed to 'pJumpBlockA->DoBlock'
Failed to 'DoStatement(TokenID)'
Failed to 'pLoopBlock->DoBlock()'
Failed to 'DoStatement(TokenID)'
Failed to 'DoBlock(0)'
Failed to 'MakeStatements'
Failed to Parse Program (MakeDBM->MakeProgram)'


Is this something I am doing wrong?? Or a compiler issue?

Thanks
Posted: 13th Sep 2011 20:53
The function code would help much here

Have you included your new file correctly?
Posted: 13th Sep 2011 20:59
Did you use #Include *File name*?
Posted: 13th Sep 2011 22:06
Did you use #Include *File name*?

This.

It usually catches me out when I add a new file, put a function in it and forget to include the new file.
Posted: 13th Sep 2011 22:25
Ok.... Feel like a right id10t now.

Thnx