Duke4.net Forums: 'enda not at top level within script' - Duke4.net Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

'enda not at top level within script'

User is offline   collider 

#1

Hi guys, I am having an issue while making a custom enemy, I keep getting this error message when I try to test my game. I have tried moving the script around, in the past adding { has helped but this time nothing, any ideas? thanks!
0

User is offline   Danukem 

  • Duke Plus Developer

#2

enda means "end actor" and should be placed at the end of your actor code, the error indicates you either didn't place it or misplaced it
0

#3

This probably means that some of your "if" or ""while" statements don't terminate properly. Make sure all your opening braces have a corresponding closing brace, also keep in mind that "if" statements may be strange in CON (not the same as in C, for example). Afaik, if you stack several if's together, they will be treated as a single if statement in regard to braces and "else" clauses.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic


All copyrights and trademarks not owned by Voidpoint, LLC are the sole property of their respective owners. Play Ion Fury! ;) © Voidpoint, LLC

Enter your sign in name and password


Sign in options