I'm not sure what caused this but for some reason Danmakufu started to give me an error about word "wait"
The error was in the main task:
task mainTask {
SetShotDirectionType(PLAYER);
wait(120);
SetMovePosition03(GetPlayerX, GetPlayerY, 7, 3);
fire01;
wait(120);
fire02;
}
It worked properly but then I did some changes to the fire01; task, and Danmakufu started to give me this error. ( I've had this problem few times before and undoing changes I did won't help)
Here is the wait function: (don't really think that you'll need to see it since I didn't do any changes to it)
function wait(w) {
loop(w) {yield;}
}
And here is task fire01; because doing changes there caused this error:
task fire01 {
loop {
CreateShotA(1, GetEnemyX, GetEnemyY, 10);
CreateShotA(2, GetEnemyX, GetEnemyY, 10);
CreateShotA(3, GetEnemyX, GetEnemyY, 10);
CreateShotA(4, GetEnemyX, GetEnemyY, 10);
SetShotDataA(1, 0, 0, 0, 0.5, 0.025, 5, RED02);
SetShotDataA(2, 0, 0, 90, 0.5, 0.025, 5, RED02);
SetShotDataA(3, 0, 0, 180, 0.5, 0.025, 5, RED02);
SetShotDataA(4, 0, 0, 270, 0.5, 0.025, 5, RED02);
FireShot(1);
FireShot(2);
FireShot(3);
FireShot(4);
PlaySE(CSD ~ "sfx\se_tan02.wav");
wait(5);
yield;
}
}
}