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
Where's the error? Heelp!
jamistara Offline
Junior Member

Posts: 21
Threads: 7
Joined: Nov 2012
Reputation: 0
#1
Where's the error? Heelp!

#include "interfaces/Map_Interface.hps"
#include "base/Inputhandler_Types.hps"

#include "helpers/helper_map.hps"
#include "helpers/helper_props.hps"
#include "helpers/helper_effects.hps"
#include "helpers/helper_audio.hps"
#include "helpers/helper_imgui.hps"
#include "helpers/helper_sequences.hps"
#include "helpers/helper_game.hps"
#include "helpers/helper_modules.hps"
#include "helpers/helper_ai.hps"

class cScrMap : iScrMap{

void Setup()
{

}
void OnStart()
{
bool cSound_PlayMusic("penumbra_music_E1_A6", 0.6, 2, 1, 1, true, true)
}
void OnEnter()
{
}
void OnLeave()
{
}


}



When I try to launch the map, the game crashes. It says there's something wrong with the 'bool csound...' line. Also, how do I get to test the map in the developer mode? (Where I can just f5 to reload the map) Even a link to somewhere that I can use to get it working? Sry kinda new to this.

Also, the error says something like : expected 'or'
(This post was last modified: 03-08-2016, 07:49 PM by jamistara.)
03-08-2016, 07:36 PM
Find
Abion47 Offline
Senior Member

Posts: 369
Threads: 22
Joined: Oct 2015
Reputation: 46
#2
RE: Where's the error? Heelp!

Quote:bool cSound_PlayMusic("penumbra_music_E1_A6", 0.6, 2, 1, 1, true, true)

It's this right here. The "bool" part is the return type of the function and should only be included when the function is declared, not when the function is called. Also, this line needs a semicolon at the end of it.
03-08-2016, 09:17 PM
Find
A.M Team Offline
Banned

Posts: 811
Threads: 63
Joined: Sep 2014
#3
RE: Where's the error? Heelp!

(03-08-2016, 07:36 PM)jamistara Wrote: void OnStart()
{
bool cSound_PlayMusic("penumbra_music_E1_A6", 0.6, 2, 1, 1, true, true)
}

Remove the bool. If it still crashes remove the c.
(This post was last modified: 03-08-2016, 09:19 PM by A.M Team.)
03-08-2016, 09:19 PM
Find
jamistara Offline
Junior Member

Posts: 21
Threads: 7
Joined: Nov 2012
Reputation: 0
#4
RE: Where's the error? Heelp!

Thanks people! Works now. :-)
03-09-2016, 02:58 PM
Find




Users browsing this thread: 1 Guest(s)