ID:142931
 
area
Cathedral
src<<sound('DR.wma',1)


Problem description:I am having a problem with this piece of code here are the errors i get
Verbs.dm:3:error:src:duplicate definition
Verbs.dm:3:error:'DR.wma':duplicate definition
Verbs.dm:3:error:1:duplicate definition
Verbs.dm:3:error::duplicate definition
Verbs.dm:3:error:<< :instruction not allowed here


Riku411811 wrote:
area
> Cathedral
> src<<sound('DR.wma',1)//here o.o wths going on you neva defined wats src
>

Problem description:I am having a problem with this piece of code here are the errors i get
Verbs.dm:3:error:src:duplicate definition
Verbs.dm:3:error:'DR.wma':duplicate definition
Verbs.dm:3:error:1:duplicate definition
Verbs.dm:3:error::duplicate definition
Verbs.dm:3:error:<< :instruction not allowed here





try other Cathedral putting Entered(mob/M) o.o and under edit src to M
In response to Putox
oops i logged in wrong account
Background music isn't something you can set at compile time, you'll have to use the areas Entered() and Exited() proc to control it. Of course, you can set up a controller so that it's easier for you to add new background music.

#define BGM_CHANNEL 1   // Set a specific channel so it 
// doesn't interfere with other sounds

area
var/bg_music

Entered(mob/M)
if(bg_music && istype(M) && M.client) // Only players need to hear BGM
M << sound(bg_music, repeat=1, channel=BGM_CHANNEL)
..()
Exited(mob/M)
if(bg_music && istype(M) && M.client)
M << sound(null, channel=BGM_CHANNEL)
..()


Now you should be able to add music like this:
area/Cathedral  
bg_music='DR.wma'