Frictional Games Forum (read-only)

Full Version: game crash
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

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()
{

}
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 )