I tried to detect a key while a script is running...
if (script_state != SCRIPT_IDLE)
{
if (event->param == BGMT_PRESS_UP)
{
??????
??????
}
}
but could not find the comand or function to stop a script. Whatever I tried results in no effect or in hanging.
Is there a way to stop a task. Sorry if this question is stupid.
task_create("run_script", 0x1c, 0x4000, run_script, 0);