The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Need help with a basic script...
Lambda Offline
Junior Member

Posts: 39
Threads: 5
Joined: Mar 2011
Reputation: 0
#1
Need help with a basic script...

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:
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

Khaaaan!
(This post was last modified: 05-03-2011, 05:36 PM by Lambda.)
05-03-2011, 05:35 PM
Find


Messages In This Thread
Need help with a basic script... - by Lambda - 05-03-2011, 05:35 PM
RE: Need help with a basic script... - by Lambda - 05-03-2011, 05:49 PM
RE: Need help with a basic script... - by Lambda - 05-03-2011, 06:15 PM



Users browsing this thread: 2 Guest(s)