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
Unexpected end of file?
Equil Offline
Member

Posts: 94
Threads: 8
Joined: Sep 2010
Reputation: 0
#2
RE: Unexpected end of file?

void OnStart()
{
AddUseItemCallback("", "StorageKey_1", "keydoor_1", "UsedKeyonDoor", true);

void UsedKeyonDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked(keydoor_1, false, true);
PlaySoundAtEntity("", "guardian_activated1", "Player", 0, false);
RemoveItem(StorageKey_1);
}

You're missing a } I think in your OnStart. try:

void OnStart()
{
AddUseItemCallback("", "StorageKey_1", "keydoor_1", "UsedKeyonDoor", true);
}

void UsedKeyonDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked(keydoor_1, false, true);
PlaySoundAtEntity("", "guardian_activated1", "Player", 0, false);
RemoveItem(StorageKey_1);
}
09-30-2010, 10:44 AM
Find


Messages In This Thread
Unexpected end of file? - by Nemesis751 - 09-30-2010, 10:35 AM
RE: Unexpected end of file? - by Equil - 09-30-2010, 10:44 AM
RE: Unexpected end of file? - by Nemesis751 - 09-30-2010, 03:39 PM
RE: Unexpected end of file? - by Equil - 09-30-2010, 04:00 PM



Users browsing this thread: 1 Guest(s)