The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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


Messages In This Thread
FATAL ERROR....EXPECTED '{' - by munsee16 - 07-04-2012, 11:12 AM
RE: FATAL ERROR....EXPECTED '{' - by Mine Turtle - 07-04-2012, 11:21 AM
RE: FATAL ERROR....EXPECTED '{' - by munsee16 - 07-04-2012, 11:47 AM
RE: FATAL ERROR....EXPECTED '{' - by munsee16 - 07-04-2012, 12:41 PM
RE: FATAL ERROR....EXPECTED '{' - by flamez3 - 07-04-2012, 12:15 PM
RE: FATAL ERROR....EXPECTED '{' - by Traggey - 07-04-2012, 12:52 PM



Users browsing this thread: 1 Guest(s)