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
Cranky Old Man Offline
Posting Freak

Posts: 986
Threads: 20
Joined: Apr 2012
Reputation: 38
#4
RE: Script Error unexpected end of file! Please help

(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);
}


Noob scripting tutorial: From Noob to Pro

(This post was last modified: 04-06-2012, 12:30 PM by Cranky Old Man.)
04-06-2012, 12:25 PM
Find


Messages In This Thread
RE: Script Error unexpected end of file! Please help - by Cranky Old Man - 04-06-2012, 12:25 PM



Users browsing this thread: 3 Guest(s)