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
FATAL ERROR....EXPECTED '{'
munsee16 Offline
Banned

Posts: 5
Threads: 2
Joined: Jul 2012
#1
FATAL ERROR....EXPECTED '{'

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 '{'
07-04-2012, 11:12 AM
Find
Mine Turtle Offline
Senior Member

Posts: 647
Threads: 32
Joined: Mar 2011
Reputation: 29
#2
RE: FATAL ERROR....EXPECTED '{'

you need to have "{" and "}" at the end of your void OnLeave()


so it becomes:

void OnLeave()
{

}

[Image: 201107142327000.gif]
07-04-2012, 11:21 AM
Find
munsee16 Offline
Banned

Posts: 5
Threads: 2
Joined: Jul 2012
#3
RE: FATAL ERROR....EXPECTED '{'

(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>
07-04-2012, 11:47 AM
Find
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#4
RE: FATAL ERROR....EXPECTED '{'

YOU HAVE A GREATER-THAN SYMBOL WHERE A LESS-THAN SYMBOL IS SUPPOSED TO BE.

Tutorials: From Noob to Pro
07-04-2012, 12:09 PM
Website Find
flamez3 Offline
Posting Freak

Posts: 1,281
Threads: 48
Joined: Apr 2011
Reputation: 57
#5
RE: FATAL ERROR....EXPECTED '{'

^ ALLCAPS = FUNNY RESPONSE ;D

07-04-2012, 12:15 PM
Find
munsee16 Offline
Banned

Posts: 5
Threads: 2
Joined: Jul 2012
#6
RE: FATAL ERROR....EXPECTED '{'

(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
07-04-2012, 12:41 PM
Find
Traggey Offline
is mildly amused

Posts: 3,257
Threads: 74
Joined: Feb 2012
Reputation: 185
#7
RE: FATAL ERROR....EXPECTED '{'

Silly people, this thread does not belong here.
07-04-2012, 12:52 PM
Find
SilentHideButFine Offline
Member

Posts: 156
Threads: 38
Joined: May 2012
Reputation: 6
#8
RE: PROBLEM WITH NOTE, TEXT AND NOT APPEAR DESCRIPTION

<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>

[url= http://www.moddb.com/mods/jessehmusic [/url] ,HOSPITAL OF HORROR MOD
07-04-2012, 01:27 PM
Find
munsee16 Offline
Banned

Posts: 5
Threads: 2
Joined: Jul 2012
#9
RE: PROBLEM WITH NOTE, TEXT AND NOT APPEAR DESCRIPTION

(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
07-04-2012, 02:14 PM
Find




Users browsing this thread: 1 Guest(s)