Posted: Fri May 06, 2011 4:58 pm Post subject: AA assert() slightly bugged?
Don't know whether this was reported before or if it's even intentional, but:
When i assert() a certain memory address and my script changes that address in any way, i cannot disable the script anymore. It makes sense that assert() checks before enabling a script, that's what it's there for, but shouldn't it skip the check when disabling a script?
I just remembered another thing - i usually put assert() before the [ENABLE] part of a table script. Is that the problem?
Joined: 09 May 2003 Posts: 25807 Location: The netherlands
Posted: Fri May 06, 2011 5:09 pm Post subject:
yes, putting it before the enable part is your problem
the code outside the enable/disable part is executed every time
So put it in the enable part so it only gets executed when the script is enabled _________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum