Frictional Games Forum (read-only)

Full Version: FRRRRRRRGH FATAL ERROR
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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)
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?
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
(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.
(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)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.
I noticed one of your timers:

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

T ^ should be capitalized.