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
Unexpected err {
mrjoshy12 Offline
Junior Member

Posts: 8
Threads: 1
Joined: Jul 2013
Reputation: 0
#1
Unexpected err {

Once I go to play my map this comes up!Huh
FATAL ERROR:Could not load script file
'custom_stories/Tutorial/maps/maps1.hps'!
main (14, 1) :ERR :Unexpected token '{'

Heres the map1.hps

////////////////////////////
// This runs when the player enters the map
void OnEnter()
{
AddUseItemCallback("", "escape_door_key1", "escape_room_door1", "UsedKeyOnDoor", true);
}

void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("escape_room_door1", false, true);
PlaySoundAtEntity("", "unlock_door", "escape_room_door1", 0, false);
RemoveItem("escape_door_key1");
}
{
AddUseItemCallback("", "lol_key1", "lol_door1", "UsedKeyOnDoor2", true);
}

void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("lol_door1", false, true);
PlaySoundAtEntity("", "unlock_door", "lol_door1", 0, false);
RemoveItem("lol_key1");
PlayMusic("Without_You_.ogg", false, 1, 0, true);
}
//===========================================
// This runs when the player leaves the map
void OnLeave()
{
}

HELP ME!!! Sad
07-16-2013, 10:35 AM
Find


Messages In This Thread
Unexpected err { - by mrjoshy12 - 07-16-2013, 10:35 AM
RE: Unexpected err { - by No Author - 07-16-2013, 10:46 AM
RE: Unexpected err { - by Artyom - 07-16-2013, 10:49 AM
RE: Unexpected err { - by PutraenusAlivius - 07-16-2013, 10:50 AM
RE: Unexpected err { - by Artyom - 07-16-2013, 10:50 AM
RE: Unexpected err { - by No Author - 07-16-2013, 10:53 AM
RE: Unexpected err { - by Artyom - 07-16-2013, 10:55 AM
RE: Unexpected err { - by PutraenusAlivius - 07-16-2013, 10:56 AM
RE: Unexpected err { - by mrjoshy12 - 07-16-2013, 11:05 AM
RE: Unexpected err { - by PutraenusAlivius - 07-16-2013, 11:20 AM
RE: Unexpected err { - by mrjoshy12 - 07-16-2013, 11:22 AM
RE: Unexpected err { - by No Author - 07-16-2013, 11:09 AM
RE: Unexpected err { - by mrjoshy12 - 07-16-2013, 11:13 AM
RE: Unexpected err { - by PutraenusAlivius - 07-16-2013, 11:24 AM
RE: Unexpected err { - by mrjoshy12 - 07-16-2013, 11:27 AM
RE: Unexpected err { - by No Author - 07-16-2013, 11:38 AM
RE: Unexpected err { - by mrjoshy12 - 07-16-2013, 11:39 AM
RE: Unexpected err { - by No Author - 07-16-2013, 11:44 AM
RE: Unexpected err { - by The chaser - 07-16-2013, 11:47 AM
RE: Unexpected err { - by No Author - 07-16-2013, 11:51 AM
RE: Unexpected err { - by mrjoshy12 - 07-16-2013, 11:55 AM



Users browsing this thread: 2 Guest(s)