I got an error!

Posted By: Deha

I got an error! - 10/30/09 21:25

Hello everybody!

A few days ago i insert a title menu into my project...
It works but i cannot stop the music which is playing on media_loop in the title menu
when i click on "start game".
I've tried it with media_stop but does not work!

I got this error
--> Can not convert "ARRAY" to "FIXED"

Need help! Any ideas are welcome! ;-)
Posted By: MichaelGale

Re: I got an error! - 10/30/09 21:27

What does your code look like?
Posted By: Deha

Re: I got an error! - 10/31/09 13:14

function start_program()
{
while (key_any) {wait (1);}
level_load("coast.wmb");
set (anzeige_pan, SHOW);
reset(menue_pan,VISIBLE);
mouse_mode = 0; // Mauszeiger wird nicht eingeblendet
handle = media_loop("wellen.wav",NULL,60);
media_stop("menu.mp3");
}

function main()
{
video_mode = 8;
video_depth = 32;
video_screen = 1;

level_load("menue.WMB");
wait(2);
handle = media_loop("menu.mp3",NULL,90);

mouse_toggle();
reset(anzeige_pan,VISIBLE);

}
Posted By: alibaba

Re: I got an error! - 10/31/09 13:44

you have to put in the handle of your music.
example:
var lala_handle;

function main()
{
lala_handle=media_loop("lala.mp3",NULL,90);
while(!key_any)wait(1);
media_stop(lala_handle);
}
Posted By: Deha

Re: I got an error! - 11/01/09 18:20

Great it works! ^^
Thank you so much alibaba! ;-)
© 2024 lite-C Forums