Main Menu

Don't understand this error

Started by Mick Berg, February 16, 2006, 07:50:06 PM

Previous topic - Next topic

Mick Berg

Why would this code give this error?

PSUB _PrintInstructions()
CENTERTEXT (Width/2),textYpos,"You have Failed to Complete the  Task." (etc, etc, just more of the same)
CENTERTEXT (Width/2),textYpos+350,"All Rights Reserved."
ENDPSUB

gives Error 417, "Missing closing EndPsub statement".
Furthermore, if I REM out this code and run it, it still gives the error. I just put this code into a PSUB so I could hide it .
Thanks, Newbies need to learn somehow!

kevin


kevin

You've prolly indented the PSUB statement, which would certainly create such an error.    Functions + Subs _have_ to be declared hard up against the left margin.  If their not, they'll be invisible to the pre-parser.

Ian Price

#3
I remember that "non-bug" from when I started ;)


And I still stand by my arguments that it should produce an error message of it's own (or just be accepted).
I came. I saw. I played some Nintendo.

Digital Awakening

I think it should be accepted in a future update. For organisational resons I want to indent some of them.
Wisit my site at: DigitalAwakening.net