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
Unexpected end of file
Daemian Offline
Posting Freak

Posts: 1,129
Threads: 42
Joined: Dec 2012
Reputation: 49
#8
RE: Unexpected end of file

You should use this how to set up notepad++ for Amnesia hps to code in hps to detect this kind of errors.
And if you don't have this, bookmark it too. HPL2 script functions. You'll need it very often.

You can't declare two functions with the same name, CreateParticleSystemAtEntity already exists.

PHP Code: (Select All)
void CreateParticleSystemAtEntity(stringasPSNamestringasPSFilestringasEntitybool abSavePS)
{
CreateParticleSystemAtEntity("rocksmoke1""ps_impact_dust_high.ps""rocksmoke_1"false); 
CreateParticleSystemAtEntity("rocksmoke2""ps_impact_dust_high.ps""rocksmoke_2"false); 
CreateParticleSystemAtEntity("rocksmoke3""ps_impact_dust_high.ps""rocksmoke_3"false); 
CreateParticleSystemAtEntity("rocksmoke4""ps_impact_dust_high.ps""rocksmoke_4"false); 
CreateParticleSystemAtEntity("rocksmoke5""ps_impact_dust_high.ps""rocksmoke_5"false); 
CreateParticleSystemAtEntity("rocksmoke6""ps_impact_dust_high.ps""rocksmoke_6"false); 
CreateParticleSystemAtEntity("rocksmoke7""ps_impact_dust_high.ps""rocksmoke_7"false); 


Why not like this? :
PHP Code: (Select All)
void rockfall_1(string &in asParentstring &in asChildint alState)
{
SetEntityActive("CaveIn"true);
CreateParticleSystemAtEntity("rocksmoke1""ps_impact_dust_high.ps""rocksmoke_1"false); 
CreateParticleSystemAtEntity("rocksmoke2""ps_impact_dust_high.ps""rocksmoke_2"false); 
CreateParticleSystemAtEntity("rocksmoke3""ps_impact_dust_high.ps""rocksmoke_3"false); 
CreateParticleSystemAtEntity("rocksmoke4""ps_impact_dust_high.ps""rocksmoke_4"false); 
CreateParticleSystemAtEntity("rocksmoke5""ps_impact_dust_high.ps""rocksmoke_5"false); 
CreateParticleSystemAtEntity("rocksmoke6""ps_impact_dust_high.ps""rocksmoke_6"false); 
CreateParticleSystemAtEntity("rocksmoke7""ps_impact_dust_high.ps""rocksmoke_7"false); 
PlaySoundAtEntity"""explosion_rock_large.snt"asChild0false );


(This post was last modified: 06-08-2016, 02:18 AM by Daemian.)
06-08-2016, 02:08 AM
Find


Messages In This Thread
Unexpected end of file - by Xallikk - 06-07-2016, 02:02 AM
RE: Unexpected end of file - by Daemian - 06-07-2016, 06:34 AM
RE: Unexpected end of file - by Romulator - 06-07-2016, 08:08 AM
RE: Unexpected end of file - by 7heDubz - 06-07-2016, 06:47 AM
RE: Unexpected end of file - by Xallikk - 06-07-2016, 09:23 PM
RE: Unexpected end of file - by Mudbill - 06-07-2016, 10:48 PM
RE: Unexpected end of file - by Xallikk - 06-08-2016, 01:50 AM
RE: Unexpected end of file - by Daemian - 06-08-2016, 02:08 AM
RE: Unexpected end of file - by Mudbill - 06-08-2016, 02:44 AM
RE: Unexpected end of file - by Xallikk - 06-08-2016, 03:48 AM



Users browsing this thread: 1 Guest(s)