Frictional Games Forum (read-only)

Full Version: Unexpected end of file Error :(
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Im getting the "Unexpected end of file" Error, and i really cant spot the mistake? Please help Smile

Code:
void OnStart ()
{
    AddUseItemCallback("", "key_1", "door_1", "UsedKeyOnDoor", true);
    AddUseItemCallback("", "monsterkey", "monsterdoor", "UsedKeyOnDoor__2", true);
}

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

void UsedKeyOnDoor_2(string &in asItem, string &in asEntity)
{
    SetSwingDoorLocked("monsterdoor, false, true);
    PlaySoundAtEntity("", "unlock_door", "monsterdoor", 0, false);
    RemoveItem("monsterkey");
}
remove the space after void OnStart
Didn't work :S
change
SetSwingDoorLocked("monsterdoor, false, true);
to
SetSwingDoorLocked("monsterdoor", false, true);



missed the "
totally missed that! Thanks for the help! Smile
no probs