![]() |
[SCRIPT] [FIRST SCRIPT] 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: [SCRIPT] [FIRST SCRIPT] unexpected end of file (/thread-13746.html) |
[FIRST SCRIPT] unexpected end of file - Peldan - 03-04-2012 Hey guys! This is my first script ever, I am just playing around a little bit. Also took some help from tutorials. However, when I added the Entity collision for the third room area, I started to get this error: "Unexpected end of file". Any idea what's wrong? ![]() http://pastebin.com/fzi7bta2 Here's the code <- PHP Code: void OnStart() EDIT: Finally found that little bastard ![]() PHP Code: AddEntityCollideCallBack("Player", "RoomThreeArea", "CollideRoomThree", true, 1"); RE: [FIRST SCRIPT] unexpected end of file - Apjjm - 03-04-2012 Looks like you have an extra " at the end of one of your AddEntityCollideCallbacks. Try this. Code: void OnStart() RE: [FIRST SCRIPT] unexpected end of file - Peldan - 03-04-2012 (03-04-2012, 04:43 PM)Apjjm Wrote: Looks like you have an extra " at the end of one of your AddEntityCollideCallbacks. Try this.Yeah, I noticed that :p Got another error now, lol. I remember solving this before on my own, but I don't remember how! Error: Quote: main(5,2) : ERR : No matching signatures to blablablabla AddEntityCollideCallBack Any idea what's wrong? Nothing has changed in my previous code except the little ". The areanames are correct.. RE: [FIRST SCRIPT] unexpected end of file - Apjjm - 03-04-2012 Method names are case-sensitive. Try using "AddEntityCollideCallback" for the second one. RE: [FIRST SCRIPT] unexpected end of file - flamez3 - 03-04-2012 The "b" in AddEntityCollideCallback is not supposed to be capitalized Edit: I dun got ninja'd >_> RE: [FIRST SCRIPT] unexpected end of file - Peldan - 03-04-2012 Stupid of me.. Thank you! |