Ok...sorted this problem....i assign a different name to the variable (i think that in some part of my code there's a variable name like that one...).
But why some things must be INSIDE the main i don't know....
Anyway.....the "for...each" loop for the modification of types is a tricky one.....if it's reset the global to 0 (like what big10p says)it's a terrible problem (for me at least...).
But why some things must be INSIDE the main i don't know....
Anyway.....the "for...each" loop for the modification of types is a tricky one.....if it's reset the global to 0 (like what big10p says)it's a terrible problem (for me at least...).