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
Fatal error could not load script file
TheKaci1234 Offline
Junior Member

Posts: 2
Threads: 1
Joined: Apr 2013
Reputation: 0
#1
Fatal error could not load script file

Hi im new in scripting i got an error:
FATAL ERROR: Could not load script file
'custom_stories/domek/maps/domek.hps'!
main (3, 19) : ERR : Expected ';'


My script file:
void OnEnter()
{
AddUseItemCallback{"", "kluczdodrzwi_1", "drzwi", "UsedKeyOnDoor", bool abAutoDestroy};
}

void MyFunc(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("drzwi", false, true);
PlaySoundAtEntity("", "unlock_door", "drzwi", 0, false);
RemoveItem("kluczdodrzwi_1");
}




I hope someone can help.
(Sorry for bad english im polish)
(This post was last modified: 04-14-2013, 03:28 PM by TheKaci1234.)
04-14-2013, 03:27 PM
Find
Romulator Offline
Not Tech Support ;-)

Posts: 3,628
Threads: 63
Joined: Jan 2013
Reputation: 195
#2
RE: Fatal error could not load script file

AddUseItemCallback{"", "kluczdodrzwi_1", "drzwi", "UsedKeyOnDoor", bool abAutoDestroy};

Change bool abAutoDestroy to either true or false.

True will mean that the key disappears from the player's inventory
False will mean that the key stays in the player's inventory Smile

Discord: Romulator#0001
[Image: 3f6f01a904.png]
04-14-2013, 04:58 PM
Find
The chaser Offline
Posting Freak

Posts: 2,486
Threads: 76
Joined: Jun 2012
Reputation: 113
#3
RE: Fatal error could not load script file

(04-14-2013, 03:27 PM)TheKaci1234 Wrote: Hi im new in scripting i got an error:
FATAL ERROR: Could not load script file
'custom_stories/domek/maps/domek.hps'!
main (3, 19) : ERR : Expected ';'


My script file:
void OnEnter()
{
AddUseItemCallback("", "kluczdodrzwi_1", "drzwi", "UsedKeyOnDoor", true);
}

void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("drzwi", false, true);
PlaySoundAtEntity("", "unlock_door", "drzwi", 0, false);
RemoveItem("kluczdodrzwi_1");
}




I hope someone can help.
(Sorry for bad english im polish)

Fixed.

THE OTHERWORLD (WIP)
[Image: k6vbdhu]

Aculy iz dolan.
(This post was last modified: 04-14-2013, 06:02 PM by The chaser.)
04-14-2013, 06:02 PM
Find
TheKaci1234 Offline
Junior Member

Posts: 2
Threads: 1
Joined: Apr 2013
Reputation: 0
#4
RE: Fatal error could not load script file

thanks
04-15-2013, 02:42 PM
Find




Users browsing this thread: 1 Guest(s)