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
Unexpected end of file?!? plz help..
Cruzore Offline
Senior Member

Posts: 301
Threads: 2
Joined: Jun 2012
Reputation: 37
#11
RE: Unexpected end of file?!? plz help..

void ActivateMonster(string &in asParent, string &in asChild, int alState);

SetNPCActive("Main", true);
it's a selfmade function, of course you need starting and ending brackets({ and }). Also, you don't put a ; at the end of the function name line.
Also, the command "SetNPCActive" doesn't exist. You use SetEntityActive instead.
Correction of it:

void ActivateMonster(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("Main", true);
}
06-27-2012, 06:40 PM
Find




Users browsing this thread: 1 Guest(s)