@testDummy

Thank you
the problem was at the Item number 3... problem is that the max local array is [3].
So I defined it as Global and put [6] and worked fine!
The only thing im affraid is that 'simultaneously' other entities will call this function, and the global value of Temp_tipo[6] give wrong values to wrong entities.

anyway thanks!