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|*
The chaser Offline
Posting Freak

Posts: 2,486
Threads: 76
Joined: Jun 2012
Reputation: 113
#5
RE: hps file scripting errors *i need helpX|*

(07-30-2013, 10:17 PM)Bludsik Wrote:
(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

Sorry, I had a mistake D:

This should be ok:

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, false);
RemoveItem("key_1");
}

THE OTHERWORLD (WIP)
[Image: k6vbdhu]

Aculy iz dolan.
07-30-2013, 11:14 PM
Find


Messages In This Thread
RE: hps file scripting errors *i need helpX|* - by The chaser - 07-30-2013, 11:14 PM



Users browsing this thread: 1 Guest(s)