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
CANT GET MY CUSTOM STORY WORKING!!!
TheDevKID Offline
Junior Member

Posts: 1
Threads: 1
Joined: Jun 2012
Reputation: 0
#1
CANT GET MY CUSTOM STORY WORKING!!!

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
06-06-2012, 12:23 PM
Find
Prelauncher Offline
Senior Member

Posts: 451
Threads: 11
Joined: May 2011
Reputation: 13
#2
RE: CANT GET MY CUSTOM STORY WORKING!!!

You've spelled player wrong

Socialism (noun): A great way to run out of other people's money.
06-06-2012, 12:38 PM
Find
Traggey Offline
is mildly amused

Posts: 3,257
Threads: 74
Joined: Feb 2012
Reputation: 185
#3
RE: CANT GET MY CUSTOM STORY WORKING!!!

''SetPlyaerSanity(15);''

Proof read dat shiet boy.
06-06-2012, 12:44 PM
Find
Datguy5 Offline
Senior Member

Posts: 629
Threads: 25
Joined: Dec 2011
Reputation: 12
#4
RE: CANT GET MY CUSTOM STORY WORKING!!!

Also you could put them in the OnEnter.

06-06-2012, 01:06 PM
Find
Putmalk Offline
Senior Member

Posts: 290
Threads: 13
Joined: Apr 2012
Reputation: 15
#5
RE: CANT GET MY CUSTOM STORY WORKING!!!

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

06-06-2012, 04:17 PM
Find




Users browsing this thread: 1 Guest(s)