The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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
Identifier error! Help!
X5KillerKlownzX Offline
Junior Member

Posts: 6
Threads: 2
Joined: Apr 2013
Reputation: 0
#1
Identifier error! Help!

Im creating a custom story and I am getting an error that says:
main (13,26) : ERR : Expected identifier

I dont understand what went wrong. my Script looks like this:

void OnStart()
{
AddEntityCollideCallback("Player", "TeleportScript", "NailThatSucker", true, 1);
}

void NailThatSucker(string &in asParent, string &in asChild, int alStates)
{
SetEntityActive("Jesus", true);
AddPropForce("Jesus",10000, 0, 0, "world");
PlaySoundAtEntity("", "24_iron_maiden.snt", "Jesus", 0, false);
}

AddEntityCollideCallBack("Player", "PlayerCollide", "MonsterFunction", true, 1);

void MonsterFunction(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("Badguy", true);
}

void OnEnter()
{

}

void OnLeave()
{

}

Jesus is an entity that flies at someone, and Badguy is a Grunt.
Please Help!
04-14-2013, 11:21 PM
Find


Messages In This Thread
Identifier error! Help! - by X5KillerKlownzX - 04-14-2013, 11:21 PM
RE: Identifier error! Help! - by Romulator - 04-15-2013, 01:33 AM
RE: Identifier error! Help! - by X5KillerKlownzX - 04-15-2013, 03:28 AM
RE: Identifier error! Help! - by NaxEla - 04-15-2013, 03:53 AM
RE: Identifier error! Help! - by X5KillerKlownzX - 04-15-2013, 04:21 AM
RE: Identifier error! Help! - by NaxEla - 04-15-2013, 08:58 AM
RE: Identifier error! Help! - by Romulator - 04-15-2013, 10:30 AM



Users browsing this thread: 1 Guest(s)