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
Beginner help :o
FinBanana Offline
Junior Member

Posts: 29
Threads: 4
Joined: Jan 2012
Reputation: 0
#1
Beginner help :o

PHP Code: (Select All)
// This runs when the map is started

     
void OnStart()
    {
    
AddEntityCollideCallBack("Player","Script_Area1","OpenCabinet",true,1);

     
     if(
ScriptDebugOn())
          {
               
GiveItemFromFile("lantern""lantern.ent");
               
SetPlayerLampOil(100.0f);
 
               for(
int i 0;10;i++)
               {
                    
GiveItemFromFile("tinderbox""tinderbox.ent");
               }
          }
     }
    
    
void OpenCabinet(stringasNamefloat afState)
    {
    
SetMoveObjectState("cabinet_nice_1"1);
    }
    
     
//===========================================
     // This runs when the player enters the map
     
void OnEnter()
     {
     }
 
     
//===========================================
     // This runs when the player leaves the map
     
void OnLeave()
     {
     
     } 


So, I have this script that should open the cabinet (cabinet_nice_1) when I enter the area (Script_Area1).
When I try to launch the map, i get a "FATAL ERROR" window saying:
" main (5,2) : ERR : No matching signatures to 'AddEntityCollideCallBack(string@&, string@&, string@&, const bool, const uint)' "
Any help would be appreciated.
Thanks!
(This post was last modified: 01-30-2012, 01:42 PM by FinBanana.)
01-26-2012, 04:50 PM
Find


Messages In This Thread
Beginner help :o - by FinBanana - 01-26-2012, 04:50 PM
RE: Beginner help :o - by Tripication - 01-26-2012, 04:54 PM
RE: Beginner help :o - by FinBanana - 01-26-2012, 04:59 PM
RE: Beginner help :o - by SilentStriker - 01-26-2012, 05:01 PM
RE: Beginner help :o - by Tripication - 01-26-2012, 05:03 PM
RE: Beginner help :o - by flamez3 - 01-26-2012, 05:05 PM
RE: Beginner help :o - by Tripication - 01-26-2012, 05:08 PM
RE: Beginner help :o - by flamez3 - 01-26-2012, 05:24 PM
RE: Beginner help :o - by FinBanana - 01-26-2012, 05:19 PM
RE: Beginner help :o - by Tripication - 01-26-2012, 05:22 PM
RE: Beginner help :o - by FinBanana - 01-26-2012, 05:29 PM
RE: Beginner help :o - by Tripication - 01-26-2012, 05:31 PM
RE: Beginner help :o - by FinBanana - 01-26-2012, 05:33 PM
RE: Beginner help :o - by flamez3 - 01-26-2012, 05:53 PM
RE: Beginner help :o - by FinBanana - 01-26-2012, 08:14 PM
[SOLVED] - by FinBanana - 01-30-2012, 01:40 PM



Users browsing this thread: 1 Guest(s)