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 Unexpected end of the file?
MaksoPL Offline
Member

Posts: 51
Threads: 26
Joined: Mar 2014
Reputation: 0
#1
Unexpected end of the file?

Hi. I've used somes scripts in .hps file, and
main 34,1 Unexpected end of the file.
This is my .hps file. What i've must do?

void OnStart()

{
AddEntityCollideCallback("Player","scared01","Barrel",true,1);
AddEntityCollideCallback("Player","thunderscript01","Burza",false,1);
AddUseItemCallback("","key1","door1","UseKeyOnDoor
}

void Barrel(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("barrel_script01",true);
}

void Burza(string &in asParent, string &in asChild, int alState)
{
PlaySoundAtEntity("123","general_wind_whirl.snt","thunderscript01",0,false);
}

void UseKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked(asEntity, false, true);
PlaySoundAtEntity("", "unlock_door.snt", asEntity, 0, false);
RemoveItem(asItem);
SetLocalVarInt("Switch", 1);
CompleteQuest("door", "touchdoor");
}

void TouchDoor(string &in asEntity)
{
if(GetLocalVarInt("Switch") == 0)
}
{
AddQuest("door", "touchdoor");
}
02-14-2015, 08:14 PM
Find


Messages In This Thread
Unexpected end of the file? - by MaksoPL - 02-14-2015, 08:14 PM
RE: Unexpected end of the file? - by Neelke - 02-14-2015, 08:28 PM
RE: Unexpected end of the file? - by Mudbill - 02-14-2015, 08:29 PM
RE: Unexpected end of the file? - by MaksoPL - 02-14-2015, 08:32 PM



Users browsing this thread: 2 Guest(s)