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
Script Help ERR: Expected data type
vabalas Offline
Junior Member

Posts: 4
Threads: 2
Joined: Jan 2013
Reputation: 0
#1
ERR: Expected data type

Every time I try to open my custom map, it says ...main (20,15) : ERR : Expected data type. I tried to solve it myself, but couldn't.
here's the script:

// This runs when the map first starts
void OnStart()
{
AddEntityCollideCallback("Player", "end", "ending", true, 1);
GiveItemFromFile("lantern_" + I, "lantern");
}

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

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

void ending("Player", "end", 1)
{
StartCredits("themonsterswithin.ogg", false, "Ending", "MainCredits", 0);
FadeOut(float 1);
}

Any help?
01-19-2013, 07:15 PM
Find


Messages In This Thread
ERR: Expected data type - by vabalas - 01-19-2013, 07:15 PM
RE: ERR: Expected data type - by The chaser - 01-19-2013, 07:36 PM
RE: ERR: Expected data type - by vabalas - 01-20-2013, 10:25 AM



Users browsing this thread: 1 Guest(s)