Originally Posted By: Kartoffel
Maybe you want to run a save-loop run in a seperate function:

Code:
void SaveLoop(var wait_time)
{
	while(1)
	{
		save();
		wait(-wait_time);
	}
}



f.e. call SaveLoop(2); once and save(); gets called every 2 seconds without affecting the rest of your code.


Thank you very much! I tryed something simmilar, but my mistake was to call the function in my while(1) - so it was called every few miliseconds. But now I moved it to main and it does exactly what it should! Thanks again!