Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 1 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Fatal Error Help!!
Mudbill Offline
Muderator

Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation: 179
#4
Not Solved RE: Fatal Error Help!!

Void UseKeyOnDoor(string &in asItem, string &in asEntity);

This line has 2 issues. First, void should be lower case. Second, the semi-colon at the end is messing things up, because this is a constructor for a function, not a function call.

The numbers in parenthesis will usually say where the issue occurs, but certain issues makes this impossible, and it will simply state either the first or last character of the file.

Edit:
AddUseItemCallback("", "Room Key, "Bedroom", "UsekeyOnDoor", true);
This line also has at least one issue, and that is the missing quote after "Room Key". Another potential issue is that you're using a space in the Room Key name, which may or may not actually work. Lastly, UsekeyOnDoor does not match your function name in regards to capital letters. Be careful with those!

Edit 2:
SetLevelDoorLocked(Bedroom, false, true);
Here, Bedroom is lacking quotes around it, so it gives an error.

void PlaySoundAtEntity("", "unlock_door.snt", asEntity, 0, false);
Remove "void" from here, because you're not declaring a function, you're calling one.

Right before "void OnLeave()" you have an opening bracket for whatever reason. That is also an error. Remove it.

(This post was last modified: 12-11-2017, 10:59 PM by Mudbill.)
12-11-2017, 10:54 PM
Find


Messages In This Thread
Fatal Error Help!! - by tigerlillymaya13 - 12-10-2017, 07:11 PM
RE: Fatal Error Help!! - by Mudbill - 12-11-2017, 01:21 AM
RE: Fatal Error Help!! - by tigerlillymaya13 - 12-11-2017, 04:27 PM
RE: Fatal Error Help!! - by Mudbill - 12-11-2017, 10:54 PM
RE: Fatal Error Help!! - by tigerlillymaya13 - 12-12-2017, 04:57 PM
RE: Fatal Error Help!! - by Abion47 - 12-12-2017, 11:51 PM
RE: Fatal Error Help!! - by tigerlillymaya13 - 12-13-2017, 05:05 PM
RE: Fatal Error Help!! - by tigerlillymaya13 - 12-13-2017, 11:20 PM



Users browsing this thread: 1 Guest(s)