Code:
string file_name = "t";
string file_type = ".pcx";
string file;
string file_number;
panel transform_l01_normal
{
flags = d3d, visible;
layer = 11;
}
function random_panel()
{
var i;
i = int(random(3))+1;
str_cpy(file,file_name);
str_for_num(file_number,i);
str_cat(file,file_number);
str_cat(file,file_type);
transform_l01_normal.bmap = file;
}
i have some files (t1.pcx, t2.pcx, t3.pcx,....).
where is the error?
the game crashes if i call this function...