Home AMX Forum AMXForums Archive Threads Tips and Tricks
Options

Do Not Use Long_while()!

Spire_JeffSpire_Jeff Formerly Caffeinated Programmer
This is currently in the text sorting thread, but it was so not nice to me, I decided it needed it's own thread.

The help file briefly states that: NOTE: DEFINE_EVENTs events are still processed even if mainline is in a LONG_WHILE. LONG_WHILE should not be used in Events. It may cause unexpected results.

I am here to tell you that IT WILL cause MAJOR delays. I didn't have any problems with things not evaluating correctly, but the statement in question took about 5-10 minutes to operate based on LONG_WHILE and only 3 seconds based on WHILE.

Hope this helps someone in the future,
Jeff

Comments

Leave a Comment

BoldItalicStrikethroughOrdered listUnordered list
Emoji
Image
Align leftAlign centerAlign rightToggle HTML viewToggle full pageToggle lights
Drop image/file