Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
What is wrong with this script! *Different script problem*
flamez3 Offline
Posting Freak

Posts: 1,281
Threads: 48
Joined: Apr 2011
Reputation: 57
#3
RE: What is wrong with this script!

(05-07-2011, 01:22 AM)Apjjm Wrote:
AddEntityCollideCallback{"Player" , "ScriptArea_2" , "MonsterFunc1" , true , 1};

void StartPlayerLookAt(ScriptArea_3, 50, 40, onlook);
Those two lines are not inside a function. The latter line, unless defining a function should not be preceded by the void keyword. Additionally there are two identical (in signature) functions called "MonsterFunc1" with the same signature, this is ambiguous and will also make the compiler throw an error.

thanks for the help, but i decided to scrap the first event, now it's just this
PHP Code: (Select All)
////////////////////////////
// Run first time starting map
void OnStart()
{
  
AddEntityCollideCallback("Player" "ScriptArea_1" "MonsterFunc1" true 1);
}
void MonsterFunc1(string &in asParent string &in asChild int alState)
{
  
SetEntityActive("servant_grunt_2" true);
}



void OnEnter()
 ;
StartPlayerLookAt("ScriptArea_3"9.09.0onlook);

void TimerDoneLookAt(string &in asTimer)
{
  
StopPlayerLookAt();
}

AddTimer(""5.5f"TimerDoneLookAt"); 

it gives me errors like this

FATAL ERROR : Could not load script file
'custom stories.......(etc)
main (15,20) : ERR : Expected identifier
main (22,9) : ERR : Expected identifier


i have no idea what i did wrong, can you or anyone help me with this script?
05-07-2011, 01:27 AM
Find


Messages In This Thread
RE: What is wrong with this script! - by Apjjm - 05-07-2011, 01:22 AM
RE: What is wrong with this script! - by flamez3 - 05-07-2011, 01:27 AM
RE: What is wrong with this script! - by Apjjm - 05-07-2011, 01:33 AM
RE: What is wrong with this script! - by flamez3 - 05-07-2011, 01:41 AM
RE: What is wrong with this script! - by Apjjm - 05-07-2011, 01:53 AM
RE: What is wrong with this script! - by flamez3 - 05-07-2011, 02:00 AM
RE: What is wrong with this script! - by Apjjm - 05-07-2011, 02:08 AM
RE: What is wrong with this script! - by flamez3 - 05-07-2011, 02:21 AM
RE: What is wrong with this script! - by Apjjm - 05-07-2011, 02:29 AM
RE: What is wrong with this script! - by flamez3 - 05-07-2011, 02:31 AM
RE: What is wrong with this script! - by Apjjm - 05-07-2011, 02:38 AM



Users browsing this thread: 1 Guest(s)