I create an entity with
Code:
string sign;
string str00;
string str01="m_number_0";
string str02;
string str03=".bmp";
funtion show_sign_event()
{
..............
str_for_asc(str02,sprite_number+48); //change 1 to 9 into a string "1" to "9"
str_cat(str00,str01); //append str00 with str01
str_cat(str00,str02); //append str00 with str02
str_cat(str00,str03); //append str00 with str03
..............
..............
str_cpy(sign,str00); //copy str00 into sign
str_cpy(str00," "); //empty str00 for nex filename
sign_number=ent_create(sign,sgn05.x,modify_sprite_event); //load the sprite
}
the first file loads perfectly, but with the second file I get an error;
Mailfunction W1301
<M_NUMBER_02.BMP>: can't open file
Now this is strange because all these files are in the same directory (images) and in the script where to find these files; 'path "..\\images";'.
Has anyone an idea how this is possible?