(08-08-2013, 10:01 PM)Havervahn Wrote: Ok now its a different issue, It gives me a Unexpected End of File error.
Script:
void OnStart()
{
SetEntityPlayerLookAtCallback("Paintingher", "looking", false);
AddUseItemCallback("", "billard_key", "billarddoor", "UseKeyOnDoor", true);
}
void Lockedbillard(string &in entity)
{
if(GetSwingDoorLocked("billarddoor",) == true)
{
SetMessage("Messages", "Lockeddoor", 6);
}
}
void looking(string &in asEntity, int alState){
SetMessage("Messages", "Memory", 9);
}
void OnEnter()
{
}
void UseKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("billarddoor", false, true);
PlaySoundAtEntity("", "unlock_door.snt", asEntity, 0, false);
RemoveItem(asItem);
void PhonographScare(string &in EntityName, int alState)
{
if(alState == 1) ///revised int alCount to int alState
{
PlaySoundAtEntity("", "broken_music_box.ogg", "Phonograph_1", 5.0f, false);
SetPropStaticPhysics("Phonograph_1", true);
}
}
void OnLeave()
{
}
void OnStart()
{
SetEntityPlayerLookAtCallback("Paintingher", "looking", false);
AddUseItemCallback("", "billard_key", "billarddoor", "UseKeyOnDoor", true);
}
void Lockedbillard(string &in entity)
{
if(GetSwingDoorLocked("billarddoor") == true)
{
SetMessage("Messages", "Lockeddoor", 6);
}
}
void looking(string &in asEntity, int alState)
{
SetMessage("Messages", "Memory", 9);
}
void OnEnter()
{
}
void UseKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("billarddoor", false, true);
PlaySoundAtEntity("", "unlock_door.snt", asEntity, 0, false);
RemoveItem(asItem);
}
void PhonographScare(string &in EntityName, int alState)
{
if(alState == 1) ///revised int alCount to int alState
{
PlaySoundAtEntity("", "broken_music_box.ogg", "Phonograph_1", 5.0f, false);
SetPropStaticPhysics("Phonograph_1", true);
}
}
void OnLeave()
{
}
It should be fixed now, I removed an innecessary "," and added a missing {.