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
Help a newbie with an HPS file?
lbrosious96 Offline
Junior Member

Posts: 4
Threads: 4
Joined: Jun 2012
Reputation: 0
#1
Help a newbie with an HPS file?

here is the code I have for my first map. It worked perfectly with the first key (monsterdoor/monsterdoorkey_1). Then, I wanted to add a second key/door, called irondoor_key and irondoor respectively, i get so many errors when loading my map. What Did i do wrong? I followed a tutorial, and I have basic/intermediate knowledge of C++ (took a highschool class or two) so go easy on me. Thank you! I will answer any and all questions you have to the best of my ability!



I am getting the error "main (11,2) : ERR : Unexpected end of file"

on line 11 row 2 its blank...so im not sure what to do Sad



void OnStart()
{
AddUseItemCallback("", "monsterdoorkey_1", "monsterdoor", "irondoor"key", "irondoor", "UsedKeyOnDoor", true);
}

void UsedKeyOnDoor(monsterdoorkey_1, monsterdoor)
{
SetSwingDoorLocked("monsterdoor", "irondoor", false, true);
PlaySoundAtEntity("", "unlock_door", "monsterdoor", "irondoor", 0, false);
RemoveItem("monsterdoorkey_1", "irondoor_key");
}
(This post was last modified: 06-29-2012, 06:01 PM by lbrosious96.)
06-29-2012, 05:28 PM
Find


Messages In This Thread
Help a newbie with an HPS file? - by lbrosious96 - 06-29-2012, 05:28 PM
RE: Help a newbie with an HPS file? - by Cruzore - 06-29-2012, 05:42 PM
RE: Help a newbie with an HPS file? - by Adny - 06-29-2012, 05:45 PM
RE: Help a newbie with an HPS file? - by ApeCake - 06-29-2012, 10:20 PM



Users browsing this thread: 1 Guest(s)