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] ANOTHER ERROR UNEXPECTED END OF FILE!
heyitsrobert97 Offline
Member

Posts: 68
Threads: 29
Joined: Jan 2012
Reputation: 0
#1
[SCRIPT] ANOTHER ERROR UNEXPECTED END OF FILE!

This is My third time i've edited my script file and every time i add something an error occurs then i add the script here and someone says there is a bracket or line missing and fixes it so can you help me again?\

void OnStart()

{
AddEntityCollideCallback("Player", "musicareabasement", "MusicPlay", true, 0);
AddEntityCollideCallback("Player", "basementdoorsmash", "func_slam", true, 1);

}

void MusicPlay(string &in asParent, string &in asChild, int alState)
{
PlayMusic("Music_01.ogg" , true , 10 , 2.0f , 0 , true);
}

void func_slam(string &in asParent, string &in asChild, int alState)
{
SetPropHealth("basementdoor", 0.0f);
SetPropHealth("basementcorpse:, 0.0f;
PlaySoundAtEntity("", "scare_human_noises.snt", "Player", 0, false);
}

void StartEffectEmotionFlash("basementdoortext","dooropen","00_laugh.snt")
{
PlaySoundAtEntity("", "react_scare", "Player", 0, false);
}

/////////////////////////////

The Music area and basement door smash worked together but now i added a corpse that dissapears and a scary noise plus a Emotion flash and now it say at the very eng after the /// unexpected end of file i think i did the english.lang right?

<LANGUAGE>
<CATEGORY Name="CustomStoryMain">
<Entry Name="Description">
Your Name is Robert,You are Inside This strange House that you entered after hearing screams from inside. You walked into the basement but a gush of wind slammed the door shut and blew out every light except one you must try and escape!
</Entry>
</CATEGORY>
</LANGUAGE>
<CATEGORY Name="basementdoortext">
<Entry Name ="dooropen">
This Place Is Creepy I Need to get Out! Oh No where did all this water come from?
</Entry>
</CATEGORY>
</LANGUAGE>



Every one who helps here will get thir username in the credits for scriptingSmile

This Darn House! , Four Doors, Youtube
(This post was last modified: 01-11-2012, 01:27 PM by heyitsrobert97.)
01-11-2012, 01:26 PM
Find


Messages In This Thread
[SCRIPT] ANOTHER ERROR UNEXPECTED END OF FILE! - by heyitsrobert97 - 01-11-2012, 01:26 PM



Users browsing this thread: 1 Guest(s)