The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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
I need Help
Zizilon Offline
Junior Member

Posts: 7
Threads: 4
Joined: Jun 2012
Reputation: 0
#1
I need Help

So i'm making custom story and everytime i try to test my Amnesia custom story it gives me an error and it says:

main (27, 1) : ERR : A function with the same name and parameters already exist
main (39, 1) : ERR : A function with the same name and parameters

What did i do wrong in the script?

////////////////////////////
// Run first time starting map
void OnStart()
{
AddUseItemCallback("", "Key", "Mansion", "UsedKeyonDoor", true);
}
void UsedKeyonDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("Mansion", false, true);
PlaySoundAtEntity("", "unlock_door", "Mansion", 0, false);
RemoveItem("Key");
}

void OnEnter()
{
AddEntityCollideCallback("Player", "PlayerCollide", "MonsterFunction", true, 1);
}

void MonsterFunction(string &in asParent, string &in asChild, int alState)
{
AddEnemyPatrolNode("servant_brute_1", "PathNodeArea_1", 0, "");
AddEnemyPatrolNode("servant_brute_1", "PathNodeArea_5", 0.001, "");
AddEnemyPatrolNode("servant_brute_1", "PathNodeArea_10", 0, "");
SetEntityActive("servant_brute_1", true);
}

void OnStart()
{
AddEntityCollideCallback("Player", "Message_1", "Message1", true, 1);
}


void Message1(string &in asChild, string &in asParent, int alState)
{
SetMessage("Messages", "Popup1", 0); //This stands for ("Name of category", "Name of entry", time to be displayed on the screen);.
}


void OnEnter()
{
}


void OnLeave()
{
}
(This post was last modified: 01-29-2014, 11:33 AM by Zizilon.)
01-29-2014, 11:31 AM
Find


Messages In This Thread
I need Help - by Zizilon - 01-29-2014, 11:31 AM
RE: I need Help - by daortir - 01-29-2014, 11:40 AM
RE: I need Help - by Zizilon - 01-29-2014, 11:49 AM
RE: I need Help - by daortir - 01-29-2014, 11:57 AM
RE: I need Help - by Zizilon - 01-29-2014, 12:12 PM
RE: I need Help - by FlawlessHappiness - 01-29-2014, 01:46 PM



Users browsing this thread: 1 Guest(s)