I actually fixed the H2I and all other type casting, and used NewGen, but it`s still weird... Which is really weird, since I fixed all bugs and it compiles fine.
But, I think it would be much better to restart the triggers, because of the GUI that rapes the selection bug. Do you know vJASS? I want to do a unit struct, and do commands as methods, or something like that.