Ok, I tried to make a restart function, but it don't works; it's very strange, I wrote this function for the restart:

function restart()
{
stopper=1; //<-- delete all Panels, Entities etc.
while(!key_q){test+=2*time_step;wait(1);} //<-- test-counter, I can see it ingame with digits(...);
media_stop(0);
sys_exit("");
}

When the Function starts, the test-value count up and stops at 0.65, but I didn't press the 'q' key. The function stops groundless; it gets stuck. It didn't react if I push 'q'. I can move the mouse, so the Engine didn't crash.
Do someone knows, what might be the fault, that a function can get stuck?
Thx for help ^^


Hilf mir, dir zu helfen!