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 [PROBLEM]
Apjjm Offline
Is easy to say

Posts: 496
Threads: 18
Joined: Apr 2011
Reputation: 52
#2
RE: Unexpected end of file [PROBLEM]

void OnEnter()
{
AddUseItemCallback("", "keytodesk", "desk", "UsedKeyOnDoor", true);
}

void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("desk", false, true);
PlaySoundAtEntity("", "unlock_door", "desk", 0, false);
RemoveItem("keytodesk");
}
The above code should be fixed now Smile.
You had placed a closing brace "}" on the end of "UsedKeyOnDoor(string &in asItem, string &in asEntity}" instead of a closing bracket ")" which was causing your error.
(This post was last modified: 12-01-2011, 11:51 PM by Apjjm.)
12-01-2011, 11:49 PM
Find


Messages In This Thread
Unexpected end of file [PROBLEM] - by GillFrog - 12-01-2011, 11:09 PM
RE: Unexpected end of file [PROBLEM] - by Apjjm - 12-01-2011, 11:49 PM



Users browsing this thread: 1 Guest(s)