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
HPS error (level editing)
mrscoomich Offline
Member

Posts: 55
Threads: 6
Joined: Mar 2012
Reputation: 0
#1
Exclamation  HPS error (level editing)

//===========================================
// Starter's Script File!
//===========================================

//===========================================
// This runs when the map first starts
void OnStart()

{
if(ScriptDebugOn())
{
GiveItemFromFile("lantern", "lantern.ent");
SetPlayerLampOil(100.0f);
for(int i = 0;i < 10;i++)
{
GiveItemFromFile("tinderbox", "tinderbox.ent");
}
}
}
//===========================================
// This runs when the player enters the map
void OnEnter()
{
{
AddUseItemCallback("", "key_1", "door_1", "UsedKeyOnDoor", true);
}
void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("door_1", false, true);
PlaySoundAtEntity("", "unlocked_door", "door_1", 0, false);
RemoveItem("key_1");
}

}

//===========================================
// This runs when the player leaves the map
void OnLeave()
{
}




-------------------------------------------------------------------------------------------



Everytime I do a test run it says this:


FATAL ERROR: Could not load script file 'maps/main/my_map.hps'!
main (27, 8) : ERR : Expected '('


extra info:

I use n++ and the language is set to c++

---
any way to fix this?
(This post was last modified: 03-16-2012, 07:48 PM by mrscoomich.)
03-16-2012, 07:36 PM
Find


Messages In This Thread
HPS error (level editing) - by mrscoomich - 03-16-2012, 07:36 PM
RE: HPS error (level editing) - by Adny - 03-16-2012, 08:56 PM
RE: HPS error (level editing) - by mrscoomich - 03-16-2012, 11:10 PM
RE: HPS error (level editing) - by Equil - 03-17-2012, 01:59 AM
RE: HPS error (level editing) - by mrscoomich - 03-17-2012, 03:18 AM
RE: HPS error (level editing) - by Equil - 03-17-2012, 05:10 AM
RE: HPS error (level editing) - by mrscoomich - 03-18-2012, 07:04 PM
RE: HPS error (level editing) - by DaAinGame - 03-21-2012, 04:23 AM
RE: HPS error (level editing) - by mrscoomich - 03-21-2012, 10:16 PM
RE: HPS error (level editing) - by DaAinGame - 03-21-2012, 10:20 PM
RE: HPS error (level editing) - by mrscoomich - 03-21-2012, 10:45 PM
RE: HPS error (level editing) - by DaAinGame - 03-21-2012, 11:00 PM
RE: HPS error (level editing) - by mrscoomich - 03-21-2012, 11:06 PM
RE: HPS error (level editing) - by DaAinGame - 03-21-2012, 11:07 PM



Users browsing this thread: 1 Guest(s)