forward Save(filename[],text[]);
public Save(filename[],text[])
{
	new File:befehlsdatei, dateipfad[128], string[128], year,month,day, hour,minute,second;
	getdate(year,month,day); gettime(hour,minute,second);
	format(dateipfad,sizeof(dateipfad),"befehle/%s.txt",filename);
	befehlsdate = fopen(dateipfad,io_append);
	format(string,sizeof(string),"[%d.%d.%d %d:%d:%d] %s\r\n",day,month,year,hour,minute,second,text);
	fwrite(befehlsdate,string);
	fclose(befehlsdate);
	return 1;
}
versuch das mal