Frictional Games Forum (read-only)

Full Version: Error missing a ";"
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
i get an error saying i miss a ; but i cant find it. can you?

void OnStart()
{
AddUseItemCallback("", "key_1", "mansion_1", "KeyOnDoor", true);
AddUseItemCallback("", "key_2", "mansion_2", "KeyOnDoor_2", true);
AddUseItemCallback("", "key_3", "mansion_5", "KeyOnDoor_5", true);
SetEntityPlayerInteractCallback("key_3", "ActivateMonster", true);
}

void KeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("mansion_1", false, true);
PlaySoundAtEntity("", "unlock_door", "mansion_1", 0.0f, true);
RemoveItem("key_1");
}

void KeyOnDoor_2(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("mansion_2", false, true);
PlaySoundAtEntity("", "unlock_door", "mansion_2", 0.0f, true);
RemoveItem("key_2");
}

void KeyOnDoor_5(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("mansion_5", false, true);
PlaySoundAtEntity("", "unlock_door", "mansion_5", 0.0f, true);
RemoveItem("key_3");
}

////////////////////////////
// Run when leaving map
void OnLeave()
{

}

void ActivateMonster(string &in item)

{
SetEntityActive("servant_grunt_1"), true);
}
Moved to development support.
Post the error. And I will tell you how to find it yourself!
You had an extra bracket in
void ActivateMonster(string &in item)
{

SetEntityActive("servant_grunt_1" ), true);
}

try:
Code:
void ActivateMonster(string &in item)
{
SetEntityActive("servant_grunt_1", true);
}
(06-20-2012, 09:29 PM)Apjjm Wrote: [ -> ]You had an extra bracket in
void ActivateMonster(string &in item)
{

SetEntityActive("servant_grunt_1" ), true);
}

try:
Code:
void ActivateMonster(string &in item)
{
SetEntityActive("servant_grunt_1", true);
}
ty! Smile