05-03-2011, 05:35 PM
Hi!
I'm very new to scripting, so i tried a basic map, and i tried using music within, but that went wrong.
I have no real area's in the map for it yet, i just want the selected music track to play, wich doesnt work.
Current code:
Error Message i get when i try to run:
FATAL ERROR: Could not load script file 'maps/main/tutorialmap.hps'!
main (7,31) : Err : Expected ')' or ','
Please, i have no programming/scripting experience at ALL before this, and this is my first attempt to add something to the basic script. So don't hate me if this is an obvious thing.
I've tried multiple things, but it all didn't work.
Thanks,
Lambda
I'm very new to scripting, so i tried a basic map, and i tried using music within, but that went wrong.
I have no real area's in the map for it yet, i just want the selected music track to play, wich doesnt work.
Current code:
Code:
void OnStart()
{
{
(PlayMusic("asMusicFile, "07_amb.ogg", abLoop, false, afVolume, "5", afFadeTime, "0", alPrio, "0","));
}
}
void OnEnter()
{
}
void OnLeave()
{
}
Error Message i get when i try to run:
FATAL ERROR: Could not load script file 'maps/main/tutorialmap.hps'!
main (7,31) : Err : Expected ')' or ','
Please, i have no programming/scripting experience at ALL before this, and this is my first attempt to add something to the basic script. So don't hate me if this is an obvious thing.
I've tried multiple things, but it all didn't work.
Thanks,
Lambda