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
More script errors!
Strembitsky Offline
Senior Member

Posts: 254
Threads: 37
Joined: Feb 2012
Reputation: 3
#1
More script errors!

//===========================================
     // Starter's Script File!
     //===========================================

     //===========================================
     // This runs when the map first starts
     void OnStart()
     {
          AddEntityCollideCallback("Player", "ScriptArea_1", "Collide_Area", true, 1);
     }
     void Collide_Area(string &in asParent, string &in asChild, int alState)      
     {
          FadeEnemyToSmoke("servant_grunt_1", true);
     }
    
     {
          AddEntityCollideCallback("Player", "ScriptArea_2", "Message1", true, 1);
     }
    
     void Message1(string &in asChild, string &in asParent, int alState)
     {
          SetMessage("Messages", "RunandHide1", 0);
     }

     //===========================================
     // This runs when the player enters the map
     void OnEnter()
     {
     }

     //===========================================
     // This runs when the player leaves the map
     void OnLeave()
     {
     }

I get an error message saying Unexpected token on the 16th line of this character: "{"


The second collide function is causing the problem. What's wrong with it?
(This post was last modified: 02-05-2012, 12:58 AM by Strembitsky.)
02-05-2012, 12:58 AM
Find


Messages In This Thread
More script errors! - by Strembitsky - 02-05-2012, 12:58 AM
RE: More script errors! - by vcplz - 02-05-2012, 01:07 AM
RE: More script errors! - by Strembitsky - 02-05-2012, 01:26 AM



Users browsing this thread: 1 Guest(s)