Frictional Games Forum (read-only)
Fatal Error... again... >.> [SOLVED] - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods (https://www.frictionalgames.com/forum/forum-35.html)
+--- Thread: Fatal Error... again... >.> [SOLVED] (/thread-7948.html)



Fatal Error... again... >.> [SOLVED] - Karai16 - 05-11-2011

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

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


RE: Fatal Error... again... >.> - Kyle - 05-11-2011

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


RE: Fatal Error... again... >.> - Karai16 - 05-11-2011

(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