Code:
STRING* profilNameStr = "";
FONT* arialFont = "arial#20";

TEXT* profilesTxt =
{
	layer = 8; 
	pos_x = 100; 
	pos_y = 300; 
	font = arialFont; 
	strings = 20;
	flags = SHOW;
}

void showProfiles()
{
	beep();
	txt_for_dir(profilesTxt, "profiles\\profil_*.txt");
}

void main()
{
	video_mode = 8;
	video_screen = 2;
	showProfiles();
}



ja das funzt natürlich mein problem ist allerdings das ich nicht möchte das
"profil_" davor und ".txt" dahinter steht.

wenn ich die ersten 8 zeichen abtrennen will mit str_clip kommt eine fehlermeldung in meinem Programm Invalid arguments

EDIT-------------------------------------

so funzt jetzt auch ohne fehlermeldung nur ein prob hab ich noch er zeigt trotzdem noch "profil_" an.

Code:
STRING* Profilname_str = "";
FONT* Stencil_font = "StencilStd#40";

TEXT* Profil_1 = { layer = 8; 
		   pos_x = 100; 
		   pos_y = 300; 
		   font = Stencil_font; 
		   strings = 5; 
		   flags = VISIBLE; }


function Profilanzeige()
{
	
	txt_for_dir( Profil_1, "Profil1_*.txt" );
	str_clip(Profilname_str, 8);
	

}



wo muss das str_clip(Profilname_str, 8); hin?

Last edited by M4sterm1nd; 10/17/09 22:25.