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
game crash
aqfitz622 Offline
Junior Member

Posts: 23
Threads: 9
Joined: Nov 2011
Reputation: 0
#1
game crash


FATAL ERROR: Could not load script file 'custom_stories/Hotel/maps/Hotel.hps'!
main (9, 48) : ERR : Expected ')' or ','

heres my hotel.hps so far

void OnStart()

{
AddUseItemCallback("", "floortwokey", "mansion_9", "UsedKeyOnDoor", true);
}

void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("mansion_9", false, true;
PlaySoundAtEntity("", "unlock_door", "mansion_9", 0, false);
RemoveItem("floortwokey");
}

void OnEnter()
{

}

void OnLeave()
{

}
12-11-2011, 07:44 PM
Find
Dyloo Offline
Junior Member

Posts: 30
Threads: 3
Joined: Sep 2011
Reputation: 5
#2
RE: game crash

Quote:void OnStart()

{
AddUseItemCallback("", "floortwokey", "mansion_9", "UsedKeyOnDoor", true);
}

void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("mansion_9", false, true);
PlaySoundAtEntity("", "unlock_door", "mansion_9", 0, false);
RemoveItem("floortwokey");
}

void OnEnter()
{

}

void OnLeave()
{

}
Here you are! Always check the ending of each line Smile ( Corrected part is red )

12-11-2011, 10:23 PM
Find




Users browsing this thread: 1 Guest(s)