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 Error with .hps file
MaksoPL Offline
Member

Posts: 51
Threads: 26
Joined: Mar 2014
Reputation: 0
#1
Error with .hps file

Hi. When I try to test custom story level, i've get that error:
main (25,2) Unexpected end of the file

This is my .hps file:
void OnStart()
{
AddEntityCollideCallback("Player", "antonydead", "Message1", true, 1);
AddEntityCollideCallback("Player", "rozdzial1", "Message2", true, 1);
AddEntityCollideCallback("Player", "trup1", "Message3", true, 1);
AddUseItemCallback("","key1","door1","Door,true);
}

void Message1(string &in asChild, string &in asParent, int alState)
{
SetMessage("Messages", "AntonyDead", 10);
}
void Message2(string &in asChild, string &in asParent, int alState)
{
SetMessage("Messages", "Rozdzial1", 10);
}
void Message3(string &in asChild, string &in asParent, int alState)
{
SetMessage("Messages", "Trup1", 10);
}
void Door(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("door1",false,true);
PlaySoundAtEntity("",unlock_door",door1",0,false);
}
01-02-2015, 01:44 PM
Find


Messages In This Thread
Error with .hps file - by MaksoPL - 01-02-2015, 01:44 PM
RE: Error with .hps file - by Daemian - 01-02-2015, 01:52 PM
RE: Error with .hps file - by MaksoPL - 01-02-2015, 01:54 PM
RE: Error with .hps file - by PutraenusAlivius - 01-03-2015, 05:14 AM
RE: Error with .hps file - by Romulator - 01-03-2015, 05:33 AM
RE: Error with .hps file - by Daemian - 01-03-2015, 07:40 AM



Users browsing this thread: 1 Guest(s)