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
Expected "("
CQBgamer Offline
Junior Member

Posts: 40
Threads: 8
Joined: Jul 2014
Reputation: 0
#1
Expected "("

I'm making a event that uses mostly timers to run and when I try and start the game I get this message
Quote: main (50,1) : INFO : Compiling void Father_Flashback_Script(string&in,string&in, int) main(55,34) :ERR : Expected '('


Here is my script

Spoiler below!
void OnStart()
{
        TeleportPlayer("Intro_0");
        FadeOut(0);
        SetPlayerActive(false);
        SetSanityDrainDisabled(true);
        ShowPlayerCrossHairIcons(false);

        AddTimer("fadein", 3, "TimerIntroOutro");
        AddTimer("Father_Insane", 3, "Father_Insane_Flashback");
        PlayMusic("OFortuna2.ogg", false, 1.0, 0, 1, true);
        SetEntityConnectionStateChangeCallback("Secret_Door_Lever01", "func_shelf");
        AddUseItemCallback("", "hall_key", "spawn_to_hall", "Open_hall", true);
        AddEntityCollideCallback("Player", "Father_Flashback", "Father_Flashback_Script", true, 1);
}

void TimerIntroOutro(string &in asTimer)
{
        if(GetLocalVarInt("Intro") < 3) {

                if(asTimer == "fadein") {
                        TeleportPlayer("Intro_" + GetLocalVarInt("Intro"));
                        FadeIn(1);
                        AddTimer("fadeout", 3, "TimerIntroOutro");
                }

                if(asTimer == "fadeout") {
                        FadeOut(1);
                        AddTimer("fadein", 1, "TimerIntroOutro");
                        AddLocalVarInt("Intro", 1);
                }
        }
        else
        {
                TeleportPlayer("Spawn");
                FadeIn(2);
                SetPlayerActive(true);
                SetSanityDrainDisabled(false);
                ShowPlayerCrossHairIcons(true);
                StopMusic(5, 1);            
                SetPlayerLampOil(0.0);
        }
}

void Open_hall (string &in asItem, string &in asEntity)
    {
    SetSwingDoorLocked("spawn_to_hall", false,true);
    }
    
void Father_Flashback_Script(string &in asParent, string &in asChild, int alState)
{
    SetPlayerActive(false);
    ShowPlayerCrossHairIcons(false);
    FadeOut(3);
        Father_Insane_Flashback(string &in asTimer) // Line 55 //
        {
        SetEntityActive(candlestick_wall_8, false);
        SetEntityActive(candlestick_wall_7, false);
        SetEntityActive(normal_portrait, false);
        SetEntityActive(insane_portrait, true);
        SetEntityActive(insane_candle01, true);
        SetEntityActive(insane_candle02), true)
        AddTimer("Father_Flashback_Scare", 3, "Father_Insane");
            if(asTimer== "Father_Flashback_Scare")
            {
            FadeIn(0)
            PlaySoundAtEntity("", "24_iron_maiden.snt", "insane_portrait", 0, false);
            AddTimer("Father_Flashback_Reactive",0.01, "Father_Insane");
            }
            
            if(asTimer== "Father_Flashback_Reactive")
            {
            SetPlayerActive(true)
            ShowPlayerCrossHairIcons(true)
            }
        }
}


[Image: 15420.png]
07-15-2014, 03:53 PM
Find


Messages In This Thread
Expected "(" - by CQBgamer - 07-15-2014, 03:53 PM
RE: Expected "(" - by Neelke - 07-15-2014, 04:04 PM
RE: Expected "(" - by CQBgamer - 07-15-2014, 04:11 PM
RE: Expected "(" - by Artsy - 07-15-2014, 04:05 PM
RE: Expected "(" - by CQBgamer - 07-16-2014, 02:56 AM
RE: Expected "(" - by PutraenusAlivius - 07-16-2014, 05:32 AM
RE: Expected "(" - by Neelke - 07-16-2014, 10:02 AM
RE: Expected "(" - by FalconLoverxxxxxx - 07-16-2014, 03:39 PM



Users browsing this thread: 1 Guest(s)