Originally Posted by VEN
1. You must reset door entity index after first while
2. Do not remove every new round, do it in plugin_init for example - that's enough.
3. Fix the warnings.
1. Why should I do that? It doesn't change the working (I actually thought about that), because Door index will be set on beginning of the while.
2. Okay, fixed, thanks for your contribution.
3. I know how to fix those, but my way is much work, I thought keeping this statement was easier, and the code is correct, right?
If I'm wrong, please reply.