ID:167726
 
i have done this:
usr << sound('fountaindreams2.wav',1)

but now all it says is:
2.dm:83:error:'fountaindreams2.wav':duplicate definition
2.dm:83:error:1:duplicate definition
2.dm:83:error::duplicate definition
2.dm:83:error:<< :instruction not allowed here
You need it under a verb or a proc.
like
mob/Login()
..()
usr<< sound('fountaindreams2.wav',1)

Can't have it just in the middle of no where.
In response to Mechanios
now i did this:
mob
icon = 'kirby.dmi'
Login()
loc = locate(1,12,1)
..()
usr << sound('fountaindreams2.wav',1)

and it comes up with:
2.dm:22:error:usr:duplicate definition
2.dm:22:error:'fountaindreams2.wav':duplicate definition
2.dm:22:error:1:duplicate definition
2.dm:22:error::duplicate definition
2.dm:22:error:<< :instruction not allowed here
2.dm:84:error:usr:duplicate definition
2.dm:84:error:'fountaindreams2.wav':duplicate definition
2.dm:84:error:1:duplicate definition
2.dm:84:error::duplicate definition
2.dm:84:error:<< :instruction not allowed here
In response to FireBallHatePeace
FireBallHatePeace wrote:
now i did this:
mob
> icon = 'kirby.dmi'
> Login()
> loc = locate(1,12,1)
> ..()
> usr << sound('fountaindreams2.wav',1)


Try:

mob
icon = 'kirby.dmi'
Login()
loc = locate(1,12,1)
..()
usr << sound('fountaindreams2.wav',1)


EDIT: Yay a kirby game! <(^_^)>
In response to KirbyRules
nope doesnt work
In response to FireBallHatePeace
..Can you show us the errors it gave?
In response to KirbyRules
2.dm:22:error:'fountaindreams2.wav':cannot find file
2.dm:83:error:usr:duplicate definition
2.dm:83:error:'fountaindreams2.wav':duplicate definition
2.dm:83:error:1:duplicate definition
2.dm:83:error::duplicate definition
2.dm:83:error:<< :instruction not allowed here

In response to FireBallHatePeace
Double click the errors,does it lead to that specific snippet of code?