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 Help FRRRRRRRGH FATAL ERROR
Popnotes Offline
Junior Member

Posts: 4
Threads: 1
Joined: Apr 2012
Reputation: 0
#1
FRRRRRRRGH FATAL ERROR

Alright, so I did some searching and got nowhere. I'm making a custom story and I successfully completed stage 1, but on stage 2, I get this error:


ExecuteString(1, 2):ERR :Expected expression value
ExecuteString(1, 2):ERR :Expected expression value
ExecuteString(1, 2):ERR :Expected expression value
ExecuteString(1, 2):ERR :Expected expression value
ExecuteString(1, 2):ERR :Expected expression value
ExecuteString(1, 2):ERR :Expected expression value
ExecuteString(1, 1):ERR :No matching signatures to 'OnLeave()'
main(38, 2:ERR :Unexpected end of file

-

And this is my code:


void OnStart()
{
AddEntityCollideCallback("Player", "StephArea", "StephanoFunc", true, 1);
}

void StephanoFunc(string &in asParent, string &in asChild, int alState)
{
StartPlayerLookAt("Stephano", 5, 5, "");
AddTimer("",2.0f,"StephanoAppear");
AddTimer("",2.7f,"Stephanotalk");
Addtimer("",4.0f,"StopLook");
}

void StephanoAppear(string &in asTimer)
{
PlaySoundAtEntity("", "impact_wood_heavy_med.snt", "Stephano", 0, false);
SetEntityActive("Stephano", true);
SetEntityActive("StephLight1", true);
SetEntityActive("StephLight2", true);
}

void Stephanotalk(string &in asTimer)
{
PlaySoundAtEntity("", "iamstephano.snt", "Stephano, 0, false);
}

void StopLook(string &in asTimer)
{
StopPlayerLookAt();
}

void OnEnter()
{
}

void OnLeave()
{
}

-

Any ideas as to what's causing this? (If there's already a thread for this, let me know and i'll take this down)
04-22-2012, 10:01 PM
Find
SilentStriker Offline
Posting Freak

Posts: 950
Threads: 26
Joined: Jul 2011
Reputation: 43
#2
RE: FRRRRRRRGH FATAL ERROR

PlaySoundAtEntity("", "iamstephano.snt", "Stephano", 0, false);

that's the error, you forgot the " on stephano.

It's not any of my business but are you making a pewdiepie map?

(This post was last modified: 04-22-2012, 10:17 PM by SilentStriker.)
04-22-2012, 10:13 PM
Find
DRedshot Offline
Senior Member

Posts: 374
Threads: 23
Joined: Jun 2011
Reputation: 11
#3
RE: FRRRRRRRGH FATAL ERROR

PlaySoundAtEntity("", "iamstephano.snt", "Stephano, 0, false);

you forgot to close the quotation marks, you should use Notepad++, these spelling errors become super rare and it makes it a lot easier to organise your code too.

edit: Ninja'd Big Grin

(This post was last modified: 04-22-2012, 10:16 PM by DRedshot.)
04-22-2012, 10:15 PM
Find
Popnotes Offline
Junior Member

Posts: 4
Threads: 1
Joined: Apr 2012
Reputation: 0
#4
RE: FRRRRRRRGH FATAL ERROR

(04-22-2012, 10:15 PM)DRedshot Wrote: PlaySoundAtEntity("", "iamstephano.snt", "Stephano, 0, false);

you forgot to close the quotation marks, you should use Notepad++, these spelling errors become super rare and it makes it a lot easier to organise your code too.

edit: Ninja'd Big Grin
I DO use Notepad++, and I didn't have C++ set as language, FAILURE on my part for that. Now it says Line 11 Char 1: No matching signatures to blahblahstring@&etcetc. Ideas?
(04-22-2012, 10:13 PM)SilentStriker Wrote: PlaySoundAtEntity("", "iamstephano.snt", "Stephano", 0, false);

that's the error, you forgot the " on stephano.

It's not any of my business but are you making a pewdiepie map?
Well, the only pewdie-related part will be the stephano and FGSFDSBARRELZ!1!one1! near the end, other than that no, it isn't a pewdiemap.
(This post was last modified: 04-22-2012, 10:23 PM by Popnotes.)
04-22-2012, 10:21 PM
Find
SilentStriker Offline
Posting Freak

Posts: 950
Threads: 26
Joined: Jul 2011
Reputation: 43
#5
RE: FRRRRRRRGH FATAL ERROR

(04-22-2012, 10:21 PM)Popnotes Wrote:
(04-22-2012, 10:15 PM)DRedshot Wrote: PlaySoundAtEntity("", "iamstephano.snt", "Stephano, 0, false);

you forgot to close the quotation marks, you should use Notepad++, these spelling errors become super rare and it makes it a lot easier to organise your code too.

edit: Ninja'd Big Grin
I DO use Notepad++, and I didn't have C++ set as language, FAILURE on my part for that. Now it says Line 11 Char 1: No matching signatures to blahblahstring@&etcetc. Ideas?
(04-22-2012, 10:13 PM)SilentStriker Wrote: PlaySoundAtEntity("", "iamstephano.snt", "Stephano", 0, false);

that's the error, you forgot the " on stephano.

It's not any of my business but are you making a pewdiepie map?
Well, the only pewdie-related part will be the stephano and FGSFDSBARRELZ!1!one1! near the end, other than that no, it isn't a pewdiemap.
Ok I'm just saying because there is too many PDP maps out there. Smile


04-22-2012, 10:26 PM
Find
Popnotes Offline
Junior Member

Posts: 4
Threads: 1
Joined: Apr 2012
Reputation: 0
#6
RE: FRRRRRRRGH FATAL ERROR

(04-22-2012, 10:26 PM)SilentStriker Wrote:
(04-22-2012, 10:21 PM)Popnotes Wrote:
(04-22-2012, 10:15 PM)DRedshot Wrote: PlaySoundAtEntity("", "iamstephano.snt", "Stephano, 0, false);

you forgot to close the quotation marks, you should use Notepad++, these spelling errors become super rare and it makes it a lot easier to organise your code too.

edit: Ninja'd Big Grin
I DO use Notepad++, and I didn't have C++ set as language, FAILURE on my part for that. Now it says Line 11 Char 1: No matching signatures to blahblahstring@&etcetc. Ideas?
(04-22-2012, 10:13 PM)SilentStriker Wrote: PlaySoundAtEntity("", "iamstephano.snt", "Stephano", 0, false);

that's the error, you forgot the " on stephano.

It's not any of my business but are you making a pewdiepie map?
Well, the only pewdie-related part will be the stephano and FGSFDSBARRELZ!1!one1! near the end, other than that no, it isn't a pewdiemap.
Ok I'm just saying because there is too many PDP maps out there. Smile
Yeah, yeah, I know. I just decided to make a few quick PDP reference insertions in the map to give a friendly nudge to other bros who play it. It isn't going to be LOL PIGGAY LOL BARULZ LOL STEPHANOES LOL MARTIN YAY, that kind of map is just stupid. It is simply... well you can guess what happens in the code, then you (Optionally) pick up stephano and go on with the level. At the very end, a barrel flies at you while it goes BARREL! and that ends it.
04-22-2012, 10:30 PM
Find
overscore Offline
Junior Member

Posts: 10
Threads: 1
Joined: Apr 2012
Reputation: 1
#7
RE: FRRRRRRRGH FATAL ERROR

I noticed one of your timers:

Addtimer("",4.0f,"StopLook");

T ^ should be capitalized.
(This post was last modified: 04-23-2012, 07:57 PM by overscore.)
04-23-2012, 07:57 PM
Find




Users browsing this thread: 2 Guest(s)