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
is not declared?
Combustible Lemon Offline
Junior Member

Posts: 10
Threads: 4
Joined: Apr 2012
Reputation: 0
#1
is not declared?

void teleport(string &in asParent, string &in asChild, int alState)
{
TeleportPlayer(gaben);
// Optional fading effects to make a better teleporting transition.
FadeOut(0);
FadeIn(20);
}
I get an error that says gaben is not declared when i start up amnesia and goto my custom story.
I don't know what to do.
(This post was last modified: 04-15-2012, 02:49 AM by Combustible Lemon.)
04-15-2012, 02:08 AM
Find
Rapture Offline
Posting Freak

Posts: 1,078
Threads: 79
Joined: May 2011
Reputation: 30
#2
RE: is not declared?

Put quotes around gaben ""

Make sure your PlayerStart area is called gaben to.

void teleport(string &in asParent, string &in asChild, int alState)
{
TeleportPlayer("gaben");
// Optional fading effects to make a better teleporting transition.
FadeOut(0);
FadeIn(20);
}
(This post was last modified: 04-15-2012, 02:19 AM by Rapture.)
04-15-2012, 02:18 AM
Find
Combustible Lemon Offline
Junior Member

Posts: 10
Threads: 4
Joined: Apr 2012
Reputation: 0
#3
RE: is not declared?

That fixed it but when i enter the area that teleports me i go outside the map and its all black and my player just keeps falling and falling.
04-15-2012, 02:41 AM
Find
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#4
RE: is not declared?

(04-15-2012, 02:41 AM)Combustible Lemon Wrote: That fixed it but when i enter the area that teleports me i go outside the map and its all black and my player just keeps falling and falling.

Chances are you told the game to teleport the player to a PlayerStart area that doesn't exist.

Tutorials: From Noob to Pro
04-15-2012, 02:47 AM
Website Find
Combustible Lemon Offline
Junior Member

Posts: 10
Threads: 4
Joined: Apr 2012
Reputation: 0
#5
RE: is not declared?

Nvm i got it thanks. Big Grin
04-15-2012, 02:48 AM
Find




Users browsing this thread: 1 Guest(s)