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
Scripting Help!!
7heDubz Offline
Posting Freak

Posts: 1,329
Threads: 40
Joined: Feb 2013
Reputation: 41
#5
RE: Scripting Help!!

(03-08-2013, 03:24 PM)The chaser Wrote:
(03-08-2013, 01:27 PM)WIWWM Wrote:
(03-08-2013, 01:26 PM)junkfood2121 Wrote: You forgot a ; after FadeOut(0) and you have a big letter on false at PlayMusic.

how didnt i see this.. well it doesnt line up with the problem code it gave me i guess thats why..

<3's and giggles thanks man

Fixed it but its still giving me the same errorcode...

void OnStart
{
FadeOut(0);
PlayMusic("forest(fw).ogg", false, 1.0, 1.5, 1, false);
SetMessage("Messages", "opening1", 3.0f);
SetMessage("Messages", "opening2", 3.0f);

}

void OnEnter
{
}

void OnLeave
{
}

I have been missing () after the Void OnStart
Thats why it never showed.
Sorry to waste your time! At least the other errors were shown to me xD

It's:

void OnStart
{
    FadeOut(0);
    PlayMusic("forestfw.ogg", false, 1.0, 1.5, 1, false);
    SetMessage("Messages", "opening1", 3.0f);
    SetMessage("Messages", "opening2", 3.0f);
    
}

void OnEnter
{
}

In the PlayMusic thing you had a (). If that's how your file is called, change the name, because the () are a part of the C++ syntax. This script is the good script, it should work.

it wouldnt. and i did change it thanks Smile

It woudnt work because you didnt put a () after OnEnter

void OnEnter()
void OnStart()
ECT

either way, let this thread RIP please

(This post was last modified: 03-08-2013, 03:44 PM by 7heDubz.)
03-08-2013, 03:44 PM
Find


Messages In This Thread
Scripting Help!! - by 7heDubz - 03-08-2013, 01:17 PM
RE: Scripting Help!! - by Linus Ågren - 03-08-2013, 01:26 PM
RE: Scripting Help!! - by 7heDubz - 03-08-2013, 01:27 PM
RE: Scripting Help!! - by The chaser - 03-08-2013, 03:24 PM
RE: Scripting Help!! - by 7heDubz - 03-08-2013, 03:44 PM
RE: Scripting Help!! - by Adrianis - 03-08-2013, 06:09 PM
RE: Scripting Help!! - by ExpectedIdentifier - 03-08-2013, 06:44 PM
RE: Scripting Help!! - by Adrianis - 03-09-2013, 12:19 AM
RE: Scripting Help!! - by 7heDubz - 03-09-2013, 01:07 AM
RE: Scripting Help!! - by PutraenusAlivius - 03-09-2013, 11:18 AM



Users browsing this thread: 1 Guest(s)