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
Scripting error
viccie Offline
Junior Member

Posts: 7
Threads: 1
Joined: Dec 2011
Reputation: 0
#1
Scripting error

well i am trying to make a custom story and found some tutorials on youtube but when i want to start my story i get an error it says:
FATAL ERROR: could not load script (folder name and where the text file is)
main 15.1: ERR : Unexpected token ''{''
And that's it
So in my .HPS file i have these scipts
////////////////////////////
// Run when entering map
void OnEnter()
{
AddUseItemCallback('''', ''deurkey_1'', ''deur'', ''UsedKeyOnDoor'', True);
AddEntityCollideCallback(''Player'', ''doorclose'', ''Collidedeur'', true, 1);
}
void doorclose(string &in asParent, string &in asChild, int alState)
{
SetSwingDoorLocked(''deur'', true, false);
}
void UsedKeyOnDoor(string &in asItem, string &in asEntity) ;
{
SetSwingDoorLocked(''deur'', false, true);
PlaySoundAtEntity('''', ''unlock_door'', ''deur'', ''0'', false);
RemoveItem(deurkey_1);
}
////////////////////////////
// Run when leaving map
void OnLeave()
{

}
PLS anyone help me it would be great!
12-21-2011, 03:06 PM
Find


Messages In This Thread
Scripting error - by viccie - 12-21-2011, 03:06 PM
RE: Scripting error - by Unearthlybrutal - 12-21-2011, 04:30 PM
RE: Scripting error - by viccie - 12-22-2011, 08:44 AM
RE: Scripting error - by flamez3 - 12-22-2011, 12:27 PM
RE: Scripting error - by viccie - 12-22-2011, 01:28 PM
RE: Scripting error - by flamez3 - 12-22-2011, 01:55 PM
RE: Scripting error - by Linus Ågren - 12-22-2011, 01:52 PM
RE: Scripting error - by viccie - 12-22-2011, 02:01 PM
RE: Scripting error - by viccie - 12-22-2011, 02:48 PM
RE: Scripting error - by flamez3 - 12-22-2011, 02:54 PM
RE: Scripting error - by viccie - 12-22-2011, 06:50 PM
RE: Scripting error - by flamez3 - 12-22-2011, 07:46 PM
RE: Scripting error - by viccie - 12-22-2011, 08:03 PM
RE: Scripting error - by Linus Ågren - 12-22-2011, 02:20 PM



Users browsing this thread: 6 Guest(s)