04-03-2011, 07:22 AM
So, I'm trying to make it so when a player moves into a Script Area, the memento appears.
Instead, when I enter the map, it gives me an error saying "main (19, 34) : ERR : 'Quest_Parents_Text' is not declared"
D: It all LOOKS right...
Code:
void OnStart()
{
AddTimer("CreepyMusic", 0, "CreepyMusic");
AddUseItemCallback("CellarDoorKey1Func", "CellarDoorKey1", "CellarDoor1", "CellarDoorKey1Func", true);
AddEntityCollideCallback("Player", "Quest1", "Quest1Func", true, 1);
}
void CreepyMusic(string &in asTimer)
{
PlayMusic("06_amb.ogg", true, 7, 3, 0, true);
}
void CellarDoorKey1Func(string &in asItem, string &in asEntity)
{
SetLevelDoorLocked("CellarDoor1", false);
RemoveItem("CellarDoorKey1");
PlaySoundAtEntity("unlocking", "unlock_door.snt", "Player", 0, true);
}
void Quest1Func(string &in asParent, string &in asChild, int alState)
{
AddQuest(Quest_Parents_Text, Quest_Parents_Text);
}
Instead, when I enter the map, it gives me an error saying "main (19, 34) : ERR : 'Quest_Parents_Text' is not declared"
D: It all LOOKS right...