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
Need Help with credits.
A Tricky Carnie Offline
Member

Posts: 72
Threads: 15
Joined: Sep 2011
Reputation: 0
#1
Need Help with credits.

Ok, so I set my credits to its own map and have it so the player will spawn on an area and it will start the credits, anyway here is my script for it:
Spoiler below!
////////////////////////////// Run when entering map
void OnStart()
//OnEnter
{
AddEntityCollideCallback("Player", "ending_area", "StartCredits", true, 1);
}
void StartCredits(string& asMusic, bool abLoopMusic, string& asTextCat, string& asTextEntry, int alEndNum)
{
StartCredits("05_paper_transformation.ogg", true, "Ending", "MainCredits", "1");
}

// Run when leaving map
void OnLeave()
{

}

also, the error message I'm receiving when the game crashes is this:
Spoiler below!
main (7,1) : ERR : A function with the same name and parameters already exist
main (9,2) :ERR: No matching signatures to 'StartCredits(string@&, constbool, string@&, string@&, string@&)'

If you need anymore information, just tell me, and thanks for any help in advance.

10-17-2011, 09:28 PM
Find


Messages In This Thread
Need Help with credits. - by A Tricky Carnie - 10-17-2011, 09:28 PM
RE: Need Help with credits. - by schmupper - 10-17-2011, 09:46 PM
RE: Need Help with credits. - by A Tricky Carnie - 10-18-2011, 08:46 PM
RE: Need Help with credits. - by Your Computer - 10-18-2011, 09:04 PM
RE: Need Help with credits. - by A Tricky Carnie - 10-18-2011, 09:08 PM
RE: Need Help with credits. - by Your Computer - 10-18-2011, 09:16 PM
RE: Need Help with credits. - by A Tricky Carnie - 10-18-2011, 09:27 PM
RE: Need Help with credits. - by i3670 - 10-19-2011, 06:40 PM



Users browsing this thread: 1 Guest(s)