Facebook Twitter YouTube Frictional Games | Forum | Newsletter | Dev Blog | Dev Wiki | Support | Shelf | Store

Privacy Policy


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[SOLVED] Super Simple Message Isn't Working ;_;
Author Message
Strembitsky Offline
Member

Posts: 243
Joined: Feb 2012
Reputation: 3
Post: #1
[SOLVED] Super Simple Message Isn't Working ;_;
AddEntityCollideCallback("Player", "DadRoom", "DadRoom", true, 1);
}
void DadRoom(string &in asParent, string &in asChild, int alState)
{
    SetMessage("Messages", "DadRoom", 0);
}

Doesn't work :/

I've been fiddling with it for a while, and it refuses to show the message when I enter the area. The name in extra_english is correct, as with the area in the editor.

The Nightmares v1.0 - Dreadful Fires WIP
(This post was last modified: 02-17-2012 03:26 AM by Strembitsky.)
02-17-2012 02:07 AM
Find all posts by this user Quote this message in a reply
Statyk Offline
Modmau5

Posts: 3,634
Joined: Sep 2011
Reputation: 200
Post: #2
RE: Super Simple Message Isn't Working ;_;
void OnStart()
{
AddEntityCollideCallback("Player", "DadRoom", "DadRoom_func", true, 1);
}
void DadRoom_func(string &in asParent, string &in asChild, int alState)
{
SetMessage("Messages", "DadRoom", 0);
}



//________________

Try that

(This post was last modified: 02-17-2012 02:17 AM by Statyk.)
02-17-2012 02:16 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Strembitsky Offline
Member

Posts: 243
Joined: Feb 2012
Reputation: 3
Post: #3
RE: Super Simple Message Isn't Working ;_;
Didn't do it :/

I added a debug message, and it didn't show. The function isn't even getting called Confused

The Nightmares v1.0 - Dreadful Fires WIP
(This post was last modified: 02-17-2012 02:26 AM by Strembitsky.)
02-17-2012 02:19 AM
Find all posts by this user Quote this message in a reply
Your Computer Offline
SCAN ME!

Posts: 3,267
Joined: Jul 2011
Reputation: 223
Post: #4
RE: Super Simple Message Isn't Working ;_;
Does everything else related to the extra_english.lang file show up? Also, post the contents of the lang file.

Tutorials: From Noob to Pro
(This post was last modified: 02-17-2012 02:29 AM by Your Computer.)
02-17-2012 02:28 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Strembitsky Offline
Member

Posts: 243
Joined: Feb 2012
Reputation: 3
Post: #5
RE: Super Simple Message Isn't Working ;_;
Every other message works.

<CATEGORY Name="Messages">
     <Entry Name="DadRoom">This is my father's room.</Entry>
      </CATEGORY>

EDIT: I'm a fucking retard. It was in the wrong .hps.

The Nightmares v1.0 - Dreadful Fires WIP
(This post was last modified: 02-17-2012 03:25 AM by Strembitsky.)
02-17-2012 02:58 AM
Find all posts by this user Quote this message in a reply
Statyk Offline
Modmau5

Posts: 3,634
Joined: Sep 2011
Reputation: 200
Post: #6
RE: Super Simple Message Isn't Working ;_;
(02-17-2012 02:58 AM)Strembitsky Wrote:  EDIT: I'm a fucking retard. It was in the wrong .hps.



I COMPLETELY understand the feeling... I did the same thing a while back. =P

02-17-2012 03:37 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)