Gamestudio Links
Zorro Links
Newest Posts
FXCM demo test failed
by qin. 01/13/26 02:32
Camera always moves upwards?
by NeoDumont. 01/12/26 09:39
Alpaca Plugin v1.5.2 Release
by kzhao. 01/11/26 13:42
Alpaca Plugin v1.4.0
by kzhao. 01/11/26 13:38
separating groups of 3 digits by a comma
by joe_kane. 01/11/26 00:01
MRC.c and WFO
by joe_kane. 01/10/26 23:58
BarOffset (default = 940 for daily bars?
by joe_kane. 01/10/26 23:46
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
1 registered members (qin), 3,221 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
promfast, joe_kane, Namitha_NN, Syndrela, agasior
19190 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
I got an error! #296308
10/30/09 21:25
10/30/09 21:25
Joined: Jan 2004
Posts: 60
D
Deha Offline OP
Junior Member
Deha  Offline OP
Junior Member
D

Joined: Jan 2004
Posts: 60
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! ;-)

Re: I got an error! [Re: Deha] #296310
10/30/09 21:27
10/30/09 21:27
Joined: Aug 2005
Posts: 1,230
M
MichaelGale Offline
Serious User
MichaelGale  Offline
Serious User
M

Joined: Aug 2005
Posts: 1,230
What does your code look like?


Your friendly mod is at your service.
Re: I got an error! [Re: MichaelGale] #296374
10/31/09 13:14
10/31/09 13:14
Joined: Jan 2004
Posts: 60
D
Deha Offline OP
Junior Member
Deha  Offline OP
Junior Member
D

Joined: Jan 2004
Posts: 60
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);

}

Re: I got an error! [Re: Deha] #296379
10/31/09 13:44
10/31/09 13:44
Joined: May 2008
Posts: 2,113
NRW/Germany
alibaba Offline
Expert
alibaba  Offline
Expert

Joined: May 2008
Posts: 2,113
NRW/Germany
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);
}


Professional Edition
A8.47.1
--------------------
http://www.yueklet.de
Re: I got an error! [Re: alibaba] #296558
11/01/09 18:20
11/01/09 18:20
Joined: Jan 2004
Posts: 60
D
Deha Offline OP
Junior Member
Deha  Offline OP
Junior Member
D

Joined: Jan 2004
Posts: 60
Great it works! ^^
Thank you so much alibaba! ;-)


Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1