Frictional Games Forum (read-only)

Full Version: FATAL ERROR....EXPECTED '{'
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
HI
HEELP ME
This is my hps text

////////////////////////////
// Run when starting map
void OnStart()
{
AddEntityCollideCallback("Player", "Music", "StartMusic", true, 1);
SetEntityPlayerInteractCallback("potion_oil_1", "Roar1", true);
SetEntityPlayerInteractCallback("potion_health_1", "Roar2", true);
SetEntityPlayerInteractCallback("note_manual", "prison_1", true);
AddEntityCollideCallback("Player", "DoorExplode", "CollideDoorExplode", true, 1);
AddUseItemCallback("", "key_1", "mansion_2", "KeyOnDoor", true);
}
void KeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("mansion_2", false, true);
PlaySoundAtEntity("", "unlock_door", "mansion_2", 0, false);
RemoveItem("key_1");
}
void StartMusic(string &in asParent, string &in asChild, int alState)
{
PlayMusic("02_amb_safe.ogg", true, 0.8, 2, 1, true);
}
void Roar1(string &in Entity)
{
PlaySoundAtEntity("Roar1", "grunt/amb_alert.snt", "Roar1", 0, false);
}
void Roar2(string &in Entity)
{
PlaySoundAtEntity("Roar2", "explosion_rock_large.snt", "Roar2", 0, false);
}
void prison_1(string &in Entity)
{
PlaySoundAtEntity("prison_1", "break_wood_metal.snt", "prison_1", 0, false);
}

void CollideDoorExplode(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("DoorExplode1", false);
SetEntityActive("DoorExploded", true);
CreateParticleSystemAtEntity("", "ps_break_wood.ps", "DoorExplodeParticle", false);
PlaySoundAtEntity("", "break_wood.snt", "DoorExplodeParticle", 0, false);
}

////////////////////////////
// Run when leaving map
void OnLeave()






AND I HAVE THIS FATAL ERROR: FATAL ERROR: Could not load script file 'custom_story/THE DARK PINK/custom_stories/THE DARK PINK/maps/THE DARK PINK.hps,! main (46,1) : ERR :Expected '{'
you need to have "{" and "}" at the end of your void OnLeave()


so it becomes:

void OnLeave()
{

}
(07-04-2012, 11:21 AM)darkadders Wrote: [ -> ]you need to have "{" and "}" at the end of your void OnLeave()


so it becomes:

void OnLeave()
{

}

THAANKS Smile NOW I HAVE NEW PROBLEM WITH NOTE AND TEXT AND NOT APPEAR DESCRIPTION
THIS IS MY EXTRA_ENGLISH.LANG TEXT

<LANGUAGE>
<RESOURCES>
</RESOURCES>
<CATEGORY Name="CustomStoryMain">
<Entry Name="Description">Bine ai venit PINK!</Entry>
</CATEGORY>
<CATEGORY Name="Inventory">
<Entry Name="ItemName_AwesomeKey">Awesome Key</Entry>
>Entry Name="ItemDesc_AwesomeKey">Cheia urmatoarei camere</Entry>

<CATEGORY Name="Journal">
<Entry Name="Note_NOTA01_Name">Salut!</Entry>
<Entry Name="Note_NOTA01_Text">Salut![br]Ma numesc Daniel si acestea sunt scrisorile mele in speranta de a ajuta pe cine mai trece pe aici.[br]</Entry>
</CATEGORY>

<CATEGORY Name="Journal">
<Entry Name="Note_NOTA02_Name">Monstrul</Entry>
<Entry Name="Note_NOTA02_Text">O nu...[br]Monstrul isi face aparitia si Doctor Cannon..o nu pot nici sa mai scriu...[br]Dr.Cannon a fost transformat in monstru si acum vrea sa isi foloseasca aparetele in scopuri negative.[br]</Entry>
</CATEGORY>
</LANGUAGE>
YOU HAVE A GREATER-THAN SYMBOL WHERE A LESS-THAN SYMBOL IS SUPPOSED TO BE.
^ ALLCAPS = FUNNY RESPONSE ;D
(07-04-2012, 12:09 PM)Your Computer Wrote: [ -> ]YOU HAVE A GREATER-THAN SYMBOL WHERE A LESS-THAN SYMBOL IS SUPPOSED TO BE.
some symbol? :-? sorry but i'm begginer
Silly people, this thread does not belong here.
<LANGUAGE>

<RESOURCES>

</RESOURCES>

<CATEGORY Name="CustomStoryMain">

<Entry Name="Description">Bine ai venit PINK!</Entry>

</CATEGORY>

<CATEGORY Name="Inventory">

<Entry Name="ItemName_AwesomeKey">Awesome Key</Entry>

<Entry Name="ItemDesc_AwesomeKey">Cheia urmatoarei camere</Entry>

</CATEGORY>

<CATEGORY Name="Journal">

<Entry Name="Note_NOTA01_Name">Salut!</Entry>

<Entry Name="Note_NOTA01_Text">Salut![br]Ma numesc Daniel si
acestea sunt scrisorile mele in speranta de a ajuta pe cine mai trece pe
aici.[br]</Entry>

</CATEGORY>



<CATEGORY Name="Journal">

<Entry Name="Note_NOTA02_Name">Monstrul</Entry>

<Entry Name="Note_NOTA02_Text">O nu...[br]Monstrul isi face
aparitia si Doctor Cannon..o nu pot nici sa mai scriu...[br]Dr.Cannon a
fost transformat in monstru si acum vrea sa isi foloseasca aparetele in
scopuri negative.[br]</Entry>

</CATEGORY>

</LANGUAGE>
(07-04-2012, 01:27 PM)SilentHideButFine Wrote: [ -> ]<LANGUAGE>

<RESOURCES>

</RESOURCES>

<CATEGORY Name="CustomStoryMain">

<Entry Name="Description">Bine ai venit PINK!</Entry>

</CATEGORY>

<CATEGORY Name="Inventory">

<Entry Name="ItemName_AwesomeKey">Awesome Key</Entry>

<Entry Name="ItemDesc_AwesomeKey">Cheia urmatoarei camere</Entry>

</CATEGORY>

<CATEGORY Name="Journal">

<Entry Name="Note_NOTA01_Name">Salut!</Entry>

<Entry Name="Note_NOTA01_Text">Salut![br]Ma numesc Daniel si
acestea sunt scrisorile mele in speranta de a ajuta pe cine mai trece pe
aici.[br]</Entry>

</CATEGORY>



<CATEGORY Name="Journal">

<Entry Name="Note_NOTA02_Name">Monstrul</Entry>

<Entry Name="Note_NOTA02_Text">O nu...[br]Monstrul isi face
aparitia si Doctor Cannon..o nu pot nici sa mai scriu...[br]Dr.Cannon a
fost transformat in monstru si acum vrea sa isi foloseasca aparetele in
scopuri negative.[br]</Entry>

</CATEGORY>

</LANGUAGE>
Thanks Big Grin