Frictional Games Forum (read-only)

Full Version: Where's the error? Heelp!
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
#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'
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, 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.
Thanks people! Works now. :-)