replace str_cat(str00,str01); with str_cpy(str00,str01); and remove line str_cpy(str00," ");.

With the second call your name is like this: " M_NUMBER_02.BMP" (watch the space in the first pos!)

mercuryus


PS: why not use str_for_num(str02,sprite_number); instead of str_for_asc(str02,sprite_number+48);?