Home AMX User Forum NetLinx Studio

"AWAKE" feature

jjamesjjames Posts: 2,908
Just got bit by it.

I opened up an old project, and it had two constants: SLEEP and AWAKE. Well, needless to say, when I compiled, it threw an error. I had no idea what it was until I closed the file and reopened it and AWAKE was in keyword state (default bold blue.)

Took me a few minutes though to actually believe the compiler was pointing me to the right section of code (prior to it being a keyword in the IDE.)

Using NS2 version 2.8.0.285 and compiler version 2.5.1.10.

Just a heads up.

Comments

  • yuriyuri Posts: 861
    ?
    i've learned to prefix my variables/constants ;)

    nSleep and nAwake :)
  • jjamesjjames Posts: 2,908
    yuri wrote: »
    ?
    i've learned to prefix my variables/constants ;)

    nSleep and nAwake :)

    Yeah - wasn't my code. This was code that was written before I got here. Not pointing any fingers though. :p
Sign In or Register to comment.