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
Script Help SetMessage not working?
Verkehr Offline
Member

Posts: 60
Threads: 13
Joined: Oct 2016
Reputation: 1
#3
RE: SetMessage not working?

(07-14-2017, 06:01 PM)FlawlessHappiness Wrote: Could you update your previous script to show how it looks with the updated "_"?
(Not that I cannot imagine it myself, but I want you to show that you did it correctly)

Things to look out for when strings in the .lang file doesn't show up:
  • Category and Entry names are correct
  • If all entries from the file don't show up there is a syntax error somewhere in the file. You have to find it and fix it.

Okay, I'll post here the updated version.

Map Code
void OnStart()
{  
    AddUseItemCallback("", "keyStart", "doorStart", "startUnlock", true);
    SetEntityCallbackFunc("note_1_room_start", "aftern1rs");
}

void aftern1rs(string &in asEntity, string &in OnPickup)
{
    SetMessage("Message", "msg_note_1_room_start", 0);
}

.lang Code
    <CATEGORY Name="Message">
        <Entry Name="msg_note_1_room_start">I should be careful with the given items, looks like this man wants to challenge me.</Entry>
    </CATEGORY>
07-14-2017, 06:18 PM
Find


Messages In This Thread
SetMessage not working? - by Verkehr - 07-14-2017, 03:10 PM
RE: SetMessage not working? - by Verkehr - 07-14-2017, 06:18 PM
RE: SetMessage not working? - by Verkehr - 07-14-2017, 07:48 PM



Users browsing this thread: 1 Guest(s)