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
Error missing a ";"
Hartmann Offline
Member

Posts: 52
Threads: 18
Joined: Jun 2012
Reputation: 0
#1
Error missing a ";"

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);
}
(This post was last modified: 06-20-2012, 08:22 PM by Hartmann.)
06-20-2012, 08:22 PM
Find
Traggey Offline
is mildly amused

Posts: 3,257
Threads: 74
Joined: Feb 2012
Reputation: 185
#2
RE: Error missing a ";"

Moved to development support.
06-20-2012, 08:24 PM
Find
Stepper321 Offline
Senior Member

Posts: 263
Threads: 26
Joined: Nov 2011
Reputation: 8
#3
RE: Error missing a ";"

Post the error. And I will tell you how to find it yourself!

Signature to awesome to be displayed.
06-20-2012, 08:41 PM
Find
Apjjm Offline
Is easy to say

Posts: 496
Threads: 18
Joined: Apr 2011
Reputation: 52
#4
RE: Error missing a ";"

You had an extra bracket in
void ActivateMonster(string &in item)
{

SetEntityActive("servant_grunt_1" ), true);
}

try:
void ActivateMonster(string &in item)
{
SetEntityActive("servant_grunt_1", true);
}
(This post was last modified: 06-20-2012, 09:29 PM by Apjjm.)
06-20-2012, 09:29 PM
Find
Hartmann Offline
Member

Posts: 52
Threads: 18
Joined: Jun 2012
Reputation: 0
#5
RE: Error missing a ";"

(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:
void ActivateMonster(string &in item)
{
SetEntityActive("servant_grunt_1", true);
}
ty! Smile
06-21-2012, 06:39 AM
Find




Users browsing this thread: 1 Guest(s)