(09-03-2012, 02:26 AM)Frodos Wrote: I used your technique Zaffre, it didn't seem to work for me, I tried some others they didn't work either.
This is what I have in my extra_english.lang file:
<LANGUAGE>
<CATEGORY Name=“Messages”>
<Entry Name =“lockeddoor1”>The door is locked from the outside, maybe there's another way out of here.</Entry>
</CATEGORY>
</LANGUAGE>
This is what I have in the hps file:
void DoorLockedPlayer(string &in entity)
{
if(GetSwingDoorLocked("WAITING_ROOM_JONATHAN") == true)
{
SetMessage("Messages", "lockeddoor1", 0);
}
}
I also set the name of the door and etc in the level editor
Do you happen to see the problem?
Yes. In the entry name, you have a space between the word "name" and the quotations. It should be like this. Also, I've bolded the part with the error.
<LANGUAGE>
<CATEGORY Name=“Messages”>
<Entry Name=“lockeddoor1”>The door is locked from the outside, maybe there's another way out of here.</Entry>
</CATEGORY>
</LANGUAGE>