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
NEW PROBLEM PLEASE HELP>>>
ryan1431 Offline
Junior Member

Posts: 14
Threads: 10
Joined: Dec 2012
Reputation: 0
#1
NEW PROBLEM PLEASE HELP>>>

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...
12-04-2012, 03:10 AM
Find
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#2
RE: NEW PROBLEM PLEASE HELP>>>

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/amn..._functions

Trying is the first step to success.
(This post was last modified: 12-04-2012, 07:01 AM by FlawlessHappiness.)
12-04-2012, 06:58 AM
Find




Users browsing this thread: 1 Guest(s)