Frictional Games Forum (read-only)

Full Version: CANT GET MY CUSTOM STORY WORKING!!!
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Help! There's a problem when i am trying to test my custom story out!! Sad

It says:

FATAL ERROR: Could not load script file 'custom_stories/test/maps/test.hps'!
main (6, 5) : ERR : No matching signatures to 'SetPlayerSanity(const uint);

Here's my code (just testing out the sanity)

////////////////////
//Runs when the player starts the map
void OnStart()
{
SetPlayerLampOil(0);
SetPlyaerSanity(15);
}

////////////////////
//Runs when the player enters the map
void OnEnter()
{

}

////////////////////
//Runs when the player leaves the map
void OnLeave()
{

}

Any help would be great... thanks!!! Smile
You've spelled player wrong
''SetPlyaerSanity(15);''

Proof read dat shiet boy.
Also you could put them in the OnEnter.
(06-06-2012, 01:06 PM)Datguy5 Wrote: [ -> ]Also you could put them in the OnEnter.
That wouldn't be advisable unless you want it to happen every time you enter the map....