Facebook Twitter YouTube Frictional Games | Forum | Newsletter | Dev Blog | Dev Wiki | Support


Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Can anyone tell me whats wrong?
Author Message
ammislol Offline
Junior Member

Posts: 24
Joined: Feb 2012
Reputation: 0
Post: #1
Can anyone tell me whats wrong?

Have i forgotten something?

I have a Level door, that takes me to my other map. But every time i try to enter the door i get this error.


Attached File(s)
.jpg  error.jpg (Size: 65.79 KB / Downloads: 11)
(This post was last modified: 02-22-2012 08:02 PM by ammislol.)
02-21-2012 09:26 PM
Find all posts by this user Quote this message in a reply
Your Computer Offline
SCAN ME!

Posts: 3,475
Joined: Jul 2011
Reputation: 234
Post: #2
RE: Can anyone tell me whats wrong?

It looks like you forgot to put "void" before OnLeave, and it also seems that you forgot to close or end something. However, i can't say for sure until you post your code.

Tutorials: From Noob to Pro
02-21-2012 09:28 PM
Visit this user's website Find all posts by this user Quote this message in a reply
ammislol Offline
Junior Member

Posts: 24
Joined: Feb 2012
Reputation: 0
Post: #3
RE: Can anyone tell me whats wrong?

(02-21-2012 09:28 PM)Your Computer Wrote:  It looks like you forgot to put "void" before OnLeave, and it also seems that you forgot to close or end something. However, i can't say for sure until you post your code.

void OnStart()
{
AddEntityCollideCallback("Player", "ScriptArea_15", "ActivateMonster1", false, 0);
}



void OnEnter()
{
void ActivateMonster1(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("waterlurker_2", true);
}




void OnLeave()
{
}
02-21-2012 09:31 PM
Find all posts by this user Quote this message in a reply
Linus Ă…gren Offline
Senior Member

Posts: 308
Joined: Jan 2011
Reputation: 5
Post: #4
RE: Can anyone tell me whats wrong?

PHP Code: (Select All)
void OnStart()
{
AddEntityCollideCallback("Player""ScriptArea_15""ActivateMonster1"false0);
}

void OnEnter()
{

}

void OnLeave()
{

}

void ActivateMonster1(string &in asParentstring &in asChildint alState)
{
SetEntityActive("waterlurker_2"true);


You need your function outside any other function as long as you don't make your own.

Creator of The Dark Treasure.
02-21-2012 09:35 PM
Visit this user's website Find all posts by this user Quote this message in a reply
ammislol Offline
Junior Member

Posts: 24
Joined: Feb 2012
Reputation: 0
Post: #5
RE: Can anyone tell me whats wrong?

(02-21-2012 09:35 PM)junkfood2121 Wrote:  
PHP Code: (Select All)
void OnStart()
{
AddEntityCollideCallback("Player""ScriptArea_15""ActivateMonster1"false0);
}

void OnEnter()
{

}

void OnLeave()
{

}

void ActivateMonster1(string &in asParentstring &in asChildint alState)
{
SetEntityActive("waterlurker_2"true);


You need your function outside any other function as long as you don't make your own.
(This post was last modified: 02-22-2012 07:47 PM by ammislol.)
02-21-2012 09:37 PM
Find all posts by this user Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)