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
Script Help Help...
Darkboot Offline
Junior Member

Posts: 31
Threads: 8
Joined: Jun 2012
Reputation: 0
#1
Help...

Error:
FATAL ERROR: Could not load script file
'custom_stories/Me/maps/Me.hps'!
main (5, 7) : ERR : Data type can't be 'void'
main 2, 25) : ERR : Only objects hace constructors
main (11, 1) : ERR : No matching signatures to 'PlaySoundEntity(string@&, string@&, string@&, const uinst, const boll)'

hps file:

////////////////////////////
// Run first time starting map
void OnStart()
{
void AddUseItemCallback("", "awesomekey_1", "mansion_1", "UsedKeyOnDoor", true);
}

void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("mansion_1", false, true);
PlaySoundEntity("", "unlock_door", "mansion_1", 0, false);
RemoveItem("awesomekey_1");
}
////////////////////////////
// Run when entering map
void OnEnter()
{

}

////////////////////////////
// Run when leaving map
void OnLeave()
{

}

i have followed the instructions both in video and the frictionalgames wiki and i doubled check if i missed something and i cant really see that i missed something, help?
(This post was last modified: 04-04-2013, 05:43 PM by Darkboot.)
04-04-2013, 05:38 PM
Find


Messages In This Thread
Help... - by Darkboot - 04-04-2013, 05:38 PM
RE: Help... - by OriginalUsername - 04-04-2013, 06:07 PM
RE: Help... - by Darkboot - 04-04-2013, 06:20 PM
RE: Help... - by OriginalUsername - 04-04-2013, 06:38 PM
RE: Help... - by Darkboot - 04-04-2013, 06:57 PM
RE: Help... - by OriginalUsername - 04-04-2013, 07:08 PM
RE: Help... - by NaxEla - 04-04-2013, 07:16 PM
RE: Help... - by Darkboot - 04-04-2013, 07:18 PM
RE: Help... - by NaxEla - 04-04-2013, 07:22 PM
RE: Help... - by Darkboot - 04-04-2013, 07:37 PM
RE: Help... - by Slanderous - 04-04-2013, 09:30 PM
RE: Help... - by NaxEla - 04-04-2013, 07:43 PM
RE: Help... - by Yare - 04-04-2013, 07:44 PM
RE: Help... - by Darkboot - 04-04-2013, 07:59 PM
RE: Help... - by NaxEla - 04-04-2013, 08:47 PM
RE: Help... - by Yare - 04-04-2013, 08:48 PM
RE: Help... - by Darkboot - 04-04-2013, 09:06 PM
RE: Help... - by OriginalUsername - 04-04-2013, 09:30 PM
RE: Help... - by Darkboot - 04-05-2013, 10:44 AM
RE: Help... - by OriginalUsername - 04-05-2013, 12:18 PM
RE: Help... - by Tiger - 04-05-2013, 01:50 PM
RE: Help... - by Darkboot - 04-05-2013, 02:38 PM
RE: Help... - by Darkboot - 04-05-2013, 07:27 PM
RE: Help... - by OriginalUsername - 04-05-2013, 05:43 PM



Users browsing this thread: 1 Guest(s)