Unexpected End Of File - Printable Version +- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum) +-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html) +--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html) +---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html) +---- Thread: Unexpected End Of File (/thread-21858.html) |
Unexpected End Of File - Banderson96 - 06-18-2013 Hi I can't figure out what the problem is with my script. Any help is appreciated! RE: Unexpected End Of File - PutraenusAlivius - 06-18-2013 PHP Code: FadeEnemyToSmoke("grunt_1, bool "scare_tingeling_rev.ogg"); You forgot a closing quotation mark for grunt_1 and a wrong bool value. It should be this. PHP Code: FadeEnemyToSmoke("grunt_1", true); //Use true if you want to use sound, false if you don't. You can't modify the sound as far as I know. RE: Unexpected End Of File - Banderson96 - 06-18-2013 (06-18-2013, 03:25 AM)JustAnotherPlayer Wrote: WOW Thanks! RE: Unexpected End Of File - CarnivorousJelly - 06-18-2013 For future reference, support questions should go in Developement Support. You're more likely to get help quickly there :) Just to add on to what JAP said:
Once you've downloaded one (or both) of those programs, change the language in it to C++. That way, your strings, bools, and floats are colour-coded. It's just a really nifty way of making sure you don't forget a bracket or an f somewhere :p In Notepad++, the language options are in the top bar, not hard to find at all. C++ is under the C drop-down menu. Floats and ints are orange, strings are grey, bools are blue, and non-script text (side-notes) are green. In Geany, I have no idea because I never downloaded it :p I just know it's a program that a lot of other people here use. Oh, and welcome to the forum! Thanks for catching the int thing, Adrianis! RE: Unexpected End Of File - Adrianis - 06-18-2013 Quote: Floats & int's are orangeUpdated
Code: int - 1, 5, 55, 25346 RE: Unexpected End Of File - DeAngelo - 06-18-2013 I hate that error. Every other error (mostly) tells you exactly where in your script the error is. But this smug bastard of an error just goes "Go find it yourself, loser" RE: Unexpected End Of File - Adrianis - 06-18-2013 Yeh but at least it gives you a solid idea of whats causing the issue! /sarcasm |