| 01-10-2004, 02:44 AM | #1 |
1. Don't crash it, but forget to start it. 2. Try to start it, but forget to check its syntax. 3. Check the syntax, but forget to check the logic. 4. Forget to initialize variables. 5. Forget to check for null. 6. Forget to call Sleep in endless loops. 7. Don't crash it, but screw up loop-conditions so that it returns. 8. Forget return statement in a function that is declared to return something. 9. Start name of functions with _ (underscore). 10. Division by 0 (AIAndy) 11. Accessing arrays with negative index (a[-1]) (AIAndy) 12. Using ExecuteFunc (AIAndy) 13. Fail to start it, because the player previously had an AI script started for it. (new) |
| 01-10-2004, 05:37 PM | #2 |
Division by 0 Accessing arrays with negative index (a[-1]) Using ExecuteFunc |
| 01-10-2004, 05:42 PM | #3 |
that must be something related to only AI. Because accesing - indices in war3 causes it to just read it as indice 0. |
| 01-22-2004, 04:53 PM | #4 |
As far as I know array variables as array indices in AI scripts don't work. For example anyarray[otherarray[index]] will cause the script to not work. Where set temp = otherarray[index] and then anyarray[temp] will work of course. |
| 01-22-2004, 11:52 PM | #5 |
I use stuff like old_id[hero_id[i]] all the time in AMAI so I am pretty sure it does work. |
