ALRIGHT!!! Problem solved!!!!
problem is here
===========================================================
c_scan(my.x,my.pan,vector(900,0,0),SCAN_ENTS | SCAN_FLAG2 | IGNORE_ME);
===========================================================
It should have been
===========================================================
c_scan(my.x,my.pan,vector(900,0,900),SCAN_ENTS | SCAN_FLAG2 | IGNORE_ME);
===========================================================
my level was facing backwards. I didnt notice that xz wa back not front T,T.
Many thx for your replies sir.