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
Fatal Error... again... >.> [SOLVED]
Karai16 Offline
Member

Posts: 164
Threads: 24
Joined: Apr 2011
Reputation: 0
#1
Fatal Error... again... >.> [SOLVED]

[Image: FatalError2.png]
This is the error I get once I start up my map. it has to do with this piece of code.

void OnStart()
{
    SetPlayerInteractCallback("RoomDoor", "showdoortext1", true);
}

void showdoortext1(string &in asParent , string &in asChild)
{
SetMessage("Message", "doortext1", 0);
}
I'm probably not stringing things in right, but could anybody tell me what's wrong?
In case you don't know what I'm trying to do, I'm trying to make text appear on the screen saying the door's locked

Custom stories:
Her Games (100% Complete)
Her Games, All Bugs Fixed (100% Complete)
(This post was last modified: 05-11-2011, 10:00 PM by Karai16.)
05-11-2011, 09:42 PM
Find
Kyle Offline
Posting Freak

Posts: 911
Threads: 36
Joined: Sep 2010
Reputation: 7
#2
RE: Fatal Error... again... >.>

It's supposed to be:
void showdoortext1(string &in asEntity)

05-11-2011, 09:45 PM
Find
Karai16 Offline
Member

Posts: 164
Threads: 24
Joined: Apr 2011
Reputation: 0
#3
RE: Fatal Error... again... >.>

(05-11-2011, 09:45 PM)Kyle Wrote: It's supposed to be:
void showdoortext1(string &in asEntity)

tried that, but it isn't working
--------
EDIT: hold on, I think I've got it

EDIT 02: Yup! I saw the other mistake myself.
I had SetPlayerInteractCallback but it's supposed to be SetEntityPlayerInteractCallback

Custom stories:
Her Games (100% Complete)
Her Games, All Bugs Fixed (100% Complete)
(This post was last modified: 05-11-2011, 10:00 PM by Karai16.)
05-11-2011, 09:55 PM
Find




Users browsing this thread: 1 Guest(s)