uhm.. both are not wkring..

because i included windows.h:
Code:
	if(menutyp == 0)
	{
		menupart_x = (screensize.x*0);
		menupart_y = (screensize.y*0);
		var filecounter = 1;
		while(filecounter != 5)
		{
			if(filecounter == 1)
			{
				if(GetFileAttributes("chronicle_1.sav")+1)
				{PANEL* button_1 = pan_create("pos_x=71;pos_y=131;flags=SHOW;
				button(0, 0, icon_save13, icon_save11, icon_save12, call_file_1, NULL, NULL);",2);printf("1 existiert");}
				else
				{PANEL* button_1 = pan_create("pos_x=71;pos_y=131;flags=SHOW;
				button(0, 0, button_leer, button_leer, button_leer, new_file_1, NULL, NULL);",2);}
			}
			if(filecounter == 2)
			{
				if(GetFileAttributes("\\Saves\chronicle_2.sav")+1)
				{PANEL* button_2 = pan_create("pos_x=71;pos_y=131;flags=SHOW;
				button(0, 0, icon_save23, icon_save21, icon_save22, call_file_2, NULL, NULL);",2);}
				else
				{PANEL* button_2 = pan_create("pos_x=71;pos_y=241;flags=SHOW;
				button(0, 0, button_leer, button_leer, button_leer, new_file_2, NULL, NULL);",2);}
			}
			if(filecounter == 3)
			{
				if(GetFileAttributes("\\Saves\chronicle_3.sav")+1)
				{PANEL* button_3 = pan_create("pos_x=71;pos_y=351;flags=SHOW;
				button(0, 0, icon_save33, icon_save31, icon_save32, call_file_3, NULL, NULL);",2);}
				else
				{PANEL* button_3 = pan_create("pos_x=71;pos_y=351;flags=SHOW;
				button(0, 0, button_leer, button_leer, button_leer, new_file_3, NULL, NULL);",2);}
			}
			if(filecounter == 4)
			{
				if(GetFileAttributes("\\Saves\chronicle_4.sav")+1)
				{PANEL* button_4 = pan_create("pos_x=71;pos_y=461;flags=SHOW;
				button(0, 0, icon_save43, icon_save41, icon_save42, call_file_4, NULL, NULL);",2);}
				else
				{PANEL* button_4 = pan_create("pos_x=71;pos_y=461;flags=SHOW;
				button(0, 0, button_leer, button_leer, button_leer, new_file_4, NULL, NULL);",2);}
			}
			filecounter += 1;
		}
	}


i stored chronicle_1.sav and chronicle_2.sav, in the "Saves" Folder of my project..
But always the else condition is activated..

Last edited by Espér; 06/14/09 18:39.

Selling my Acknex Engine Editions (A7 Com & A8 Pro):
>> click here if you are interested <<