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
hps file scripting errors *i need helpX|*
Bludsik Offline
Junior Member

Posts: 3
Threads: 1
Joined: Jul 2013
Reputation: 0
#4
RE: hps file scripting errors *i need helpX|*

(07-30-2013, 11:08 AM)The chaser Wrote: void OnStart
{
AddUseItemCallback("", "key_1", "door_1", "FUNCTION", true);
}

void OnEnter()
{

}

void OnLeave()
{

}
void FUNCTION(string &in item, string &in asEntity)
{
SetSwingDoorLocked("door_1", false);
RemoveItem("key_1");
}

There, fixed it for you. You had some things wrong:

-You put these "(" instead "{"
-You didn't have the FUNCTION function closed (with a })
-You hadn't put a ; at the end of the AddUseItemCallback.
Thanks so much for replying. I fixed the errors, but now it comes up with an error saying
main (17,1):ERR: No matching signatures to 'SetSwingDoorLocked(string@&, const bool)'
Any suggestions? Undecided
07-30-2013, 10:17 PM
Find


Messages In This Thread
RE: hps file scripting errors *i need helpX|* - by Bludsik - 07-30-2013, 10:17 PM



Users browsing this thread: 1 Guest(s)