![]() |
NEW PROBLEM PLEASE HELP>>> - 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: NEW PROBLEM PLEASE HELP>>> (/thread-19436.html) |
NEW PROBLEM PLEASE HELP>>> - ryan1431 - 12-04-2012 This is ALL OF THE STUFF IN MY .HPS FILE... void OnStart() { AddUseItemCallback("", "studykey_1", "mansion_2", "OPEN_study", true);AddUseItemCallback("", "dungeonkey_2", "mansion_3", "OPEN_dungeon", true); } void OPEN_study(string &in asItem, string &in asEntity) { SetSwingDoorLocked("mansion_2", false, true); PlaySoundAtEntity("", "unlock_door", "mansion_2", 0, false); RemoveItem("studykey_1"); } void StudyDoorLocked(string &in entity) { if(GetSwingDoorLocked("mansion_2") == true) { SetMessage("Messages", "studyroomlocked", 0); } } void OPEN_dungeon(string &in asItem, string &in asEntity) { SetSwingDoorLocked("mansion_3", false, true); PlaySoundAtEntity("", "unlock_door", "mansion_3", 0, false); RemoveItem("dungeonkey_2"); } void DungeonDoorLocked(string &in entity) { if(GetSwingDoorLocked("mansion_3") == true) { SetMessage("Messages", "dungeondoorlocked", 0); } } void papermusic_01(string &in asEntity) { PlayGameMusic(01_paper_self, 1, 0, 0, 0); SetTimer("paper_01_music", 25, "paper_01_music"); } void paper_01_music(string &in asTimer) { StopGameMusic(1, 0); } THE BOLDED FONT IS WHERE THE PROBLEMS ARE AT. THIS IS WHAT IT SAYS WHEN I TRY TO QUICKMAPRELOAD main (42,1) : INFO : Compiling void papermusic_01(string&in) main (44,18) : ERR : Expected ')' or ',' main (48,1) : INFO : Compiling void paper_01_music(string&in) main (50,2) : ERR : No matching signatures to 'StopGameMusic(const uint, const uint)' What is a compiling void anyway?? :$ please help me out... RE: NEW PROBLEM PLEASE HELP>>> - FlawlessHappiness - 12-04-2012 Compiling means, when it goes through the scripts. It then finds some errors. main (44,18) : ERR : Expected ')' or ',' I don't think there is a line called PlayGameMusic. It should just be PlayMusic. Also you didn't declare 01_paper_self, and you should put the extension .ogg next to it too. Also it's not SetTimer, it's AddTimer main (50,2) : ERR : No matching signatures to 'StopGameMusic(const uint, const uint)' I don't think there is a line called StopGameMusic either. Use StopMusic instead. It looks like you can use this http://wiki.frictionalgames.com/hpl2/amnesia/script_functions |