i got a problem of getting the texture name of a BMAP*
i realy dont know to get a bmp to a string
Code:
var temp[3];
var fhandle;
BMAP* bmp_t;
STRING* t_str ="#20";
...
vec_set(temp,my.x);
vec_add(temp,vector(0,0,-1000));
c_trace(vector(my.x,my.y,my.z+20),temp,IGNORE_ME|SCAN_TEXTURE);
if(you != NULL)
{
temp = hit.skin1;
bmp_t = ent_getskin(you,temp);
//bmp_t to t_str
//t_str = bmp_t;
fhandle = file_open_read("a.txt");
file_find(fhandle,t_str);
file_str_read(fhandle,t_str);
file_close(fhandle);
}
ow and plz dont com white tex_name because it gives only the filename