Frictional Games Forum (read-only)
Where's the error? Heelp! - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: SOMA (https://www.frictionalgames.com/forum/forum-55.html)
+--- Forum: User created content (https://www.frictionalgames.com/forum/forum-79.html)
+---- Forum: Development (https://www.frictionalgames.com/forum/forum-82.html)
+---- Thread: Where's the error? Heelp! (/thread-41611.html)



Where's the error? Heelp! - jamistara - 03-08-2016

#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'


RE: Where's the error? Heelp! - Abion47 - 03-08-2016

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.


RE: Where's the error? Heelp! - A.M Team - 03-08-2016

(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.


RE: Where's the error? Heelp! - jamistara - 03-09-2016

Thanks people! Works now. :-)