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
Problem adding a diary page (i'm nooby)
Fetishman Offline
Junior Member

Posts: 42
Threads: 3
Joined: Aug 2011
Reputation: 7
#4
RE: Problem adding a diary page (i'm nooby)

(08-22-2011, 05:06 AM)JetlinerX Wrote: Hint:

You have more info than you need in each of the peramaters. Take a look at this, and compair it to yours:

(DO NOT USE THIS CODE, IT WONT WORK FOR YOU)
void FirstScriptArea(string &in asParent, string &in asChild, int alState)
{
        SetMessage("Messages", "DerrekMother", 0);
        SetPlayerMoveSpeedMul(0.5f);
        SetPlayerJumpDisabled(true);
        SetPlayerCrouchDisabled(true);
        PlayMusic("EndFile1.ogg", false, 20, 0, 0, true);
}

Now try to see what is different besides the obvious difference in code.

Thanks for your initial reply! I have made a few changes after looking thought what you have said. This is what I have:
void SetEntityCallbackFunc("diarypage1", "OnPickup")
{
    OnPickup("servantdiary", "AddDiary");
    AddDiary("servantdiary_Name" && "servantdiary_Text", "");
}

Now the error says that it is "Expected data type." Does this mean I have to indicate whether it is int, f, bool, or string?[/code]
08-22-2011, 04:51 PM
Find


Messages In This Thread
RE: Problem adding a diary page (i'm nooby) - by Fetishman - 08-22-2011, 04:51 PM



Users browsing this thread: 1 Guest(s)