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!!
The chaser Offline
Posting Freak

Posts: 2,486
Threads: 76
Joined: Jun 2012
Reputation: 113
#4
RE: Scripting Help!!

(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.

THE OTHERWORLD (WIP)
[Image: k6vbdhu]

Aculy iz dolan.
(This post was last modified: 03-08-2013, 03:24 PM by The chaser.)
03-08-2013, 03:24 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: 2 Guest(s)