![]() |
[SCRIPT] Lines Error in .hps - 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] Lines Error in .hps (/thread-28908.html) |
Lines Error in .hps - MaksoPL - 01-02-2015 When i've add line AddUseItemCallback("","key1","door1","Door,true); in the test i see the error: Unexpected end of file. What's wrong with that line? .hps file: void OnStart() { AddEntityCollideCallback("Player", "antonydead", "Message1", true, 1); AddEntityCollideCallback("Player", "rozdzial1", "Message2", true, 1); AddEntityCollideCallback("Player", "trup1", "Message3", true, 1); AddUseItemCallback("","key1","door1","Door,true); } void Message1(string &in asChild, string &in asParent, int alState) { SetMessage("Messages", "AntonyDead", 10); } void Message2(string &in asChild, string &in asParent, int alState) { SetMessage("Messages", "Rozdzial1", 10); } void Message3(string &in asChild, string &in asParent, int alState) { SetMessage("Messages", "Trup1", 10); } void Door(string &in asItem, string &in asEntity) { SetSwingDoorLocked("door1",false,true); PlaySoundAtEntity("","unlock_door","door1",0,false); RemoveItem("key1"); } What i've must done? RE: Lines Error in .hps - DnALANGE - 01-02-2015 AddUseItemCallback("","key1","door1","Door,true); You have THIS : "Door Add the " - Door like this "Door" So Add the " And it should work fine. You just missed 1 bracket ![]() Here i'll make it for you. PHP Code: AddUseItemCallback("","key1","door1","Door",true); Extra Information; Please do NOT make severals threads for 1 question please. Just RE-ASK the same question in the same Threadh, or we will have a whole page for 1 question ![]() Thank you. RE: Lines Error in .hps - MaksoPL - 01-02-2015 (01-02-2015, 03:09 PM)DnALANGE Wrote: AddUseItemCallback("","key1","door1","Door,true); Thanks. It's working RE: Lines Error in .hps - DnALANGE - 01-02-2015 Your welcome. You can IF a question is solved add this in your threadname; SOLVED. Like; [SCRIPT] Lines Error in .hps (Solved) |