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 Error unexpected end of file! Please help
hiippari Offline
Junior Member

Posts: 31
Threads: 4
Joined: Mar 2012
Reputation: 1
#5
RE: Script Error unexpected end of file! Please help

(04-06-2012, 12:25 PM)Cranky Old Man Wrote:
(04-06-2012, 11:54 AM)hiippari Wrote: Still doesnt work same error Sad
I don't believe you. Did you forget to save the file? ...because "unexpected end of file" means that you forgot a bracket. If you type the correct number of brackets, you should at least get another error.

Hold on, there was something else in the code as well...

Edit:
These lines look odd:
if(asItem == "glass_container_1")
PlaySoundAtEntity("fillbottle", "puzzle_acid_success", asEntity, 1.0f, false);

...because I've only seen if statements as either
if(asItem == "glass_container_1") PlaySoundAtEntity("fillbottle", "puzzle_acid_success", asEntity, 1.0f, false);

...or:

if(asItem == "glass_container_1")
{
   PlaySoundAtEntity("fillbottle", "puzzle_acid_success", asEntity, 1.0f, false);
}
I will try it Smile


04-06-2012, 12:58 PM
Find


Messages In This Thread
RE: Script Error unexpected end of file! Please help - by hiippari - 04-06-2012, 12:58 PM



Users browsing this thread: 1 Guest(s)