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
Problem with a script (Expected identifier)
lordmestari Offline
Junior Member

Posts: 22
Threads: 8
Joined: Apr 2011
Reputation: 0
#1
Problem with a script (Expected identifier)

I cannot see where is the mistake, to my knowledge this script should work.
I am quite new still though, so could one of you please check if there is an actual mistake?

(11,32): ERR : Expected Identifier
My script looks like this:


void OnStart()
{
AddEntityCollideCallback("Player" , "GruntArea" , "MonsterFunc1" , true, 1);
}

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

SetEntityPlayerInteractCallback("tinderbox_1" , "TakeTinder" , true);

void TakeTinder(string &in asEntity)
{
SetEntityActive("servant_grunt_1" , true);
}

Thanks in advance
04-09-2011, 04:30 PM
Find


Messages In This Thread
Problem with a script (Expected identifier) - by lordmestari - 04-09-2011, 04:30 PM



Users browsing this thread: 2 Guest(s)