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
[SCRIPT]No matching signatures
xjonx Offline
Junior Member

Posts: 15
Threads: 7
Joined: Feb 2014
Reputation: 0
#1
Exclamation  [SCRIPT]No matching signatures

In my .hps all scripts are correct but when I start it I got...
Spoiler below!
[Image: XrF7Kgd.png]
It says ShowPlayerCrosshairIcons(false); is wrong but its not because there is no "" for the bool help Huh
Script:
Spoiler below!
//This is only executed when the map is loaded for the first time. Only happens once. Can be used for adding effects that should not repeat.//
void OnStart()
{  
    AddUseItemCallback("", "key1", "frontdoor", "UseKeyOnDoor", true);
    FadeOut(0);
    SetPlayerActive(false);
    SetSanityDrainDisabled(true);
    ShowPlayerCrosshairIcons(false);

    AddTimer("fadein", 3, "TimerInroOutro");

    PlayMusic("intro_cabin.ogg", false, 1, 1, 1, false);
}           //Missing brace

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

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

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

            PlayMusic("inrto_cabin.ogg", false, 0, 1, 2, false);
        }
    }
}       //Missing brace

void UseKeyOnDoor(string &in asItem, string &in asEntity)
{
    SetSwingDoorLocked("frontdoor", false, true);
    RemoveItem(asItem);
}

//This is executed every time you enter the level. Can be executed several times. Can be used for playing music and adding checks.//
void OnEnter()
{

}

//This is executed every time you leave the level. Can be executed several times. Can be used for stopping music//
void OnLeave()
{

}

03-20-2014, 12:29 AM
Find
PutraenusAlivius Offline
Posting Freak

Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation: 119
#2
RE: [SCRIPT]No matching signatures

It's a bug.

"Veni, vidi, vici."
"I came, I saw, I conquered."
03-20-2014, 12:37 AM
Find
DnALANGE Offline
Banned

Posts: 1,549
Threads: 73
Joined: Jan 2012
#3
RE: [SCRIPT]No matching signatures

ShowPlayerCrossHairIcons(false);

The H is h .. make it CAPITAL.
ShowPlayerCross >H< airIcons(false);

(03-20-2014, 12:37 AM)SomethingRidiculous Wrote: It's a bug.

LOL.. most easy solution you got there Wink
(This post was last modified: 03-20-2014, 12:42 AM by DnALANGE.)
03-20-2014, 12:41 AM
Find
Wapez Offline
Senior Member

Posts: 360
Threads: 37
Joined: Mar 2012
Reputation: 19
#4
RE: [SCRIPT]No matching signatures

Not a bug, it's a typo like DnaALANGE said.

Founder & Legally Accountable Publisher of Red Line Games.
Environment & Gameplay Designer and Scripter.
http://moddb.com/mods/in-lucys-eyes
03-20-2014, 07:52 AM
Find




Users browsing this thread: 1 Guest(s)