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
Script Help Unexpected token?
TeamSD Offline
Member

Posts: 51
Threads: 3
Joined: Apr 2012
Reputation: 2
#4
RE: Unexpected token?

(04-26-2012, 06:32 PM)Manbearpig116 Wrote:
(04-26-2012, 06:25 PM)TeamSD Wrote: I see unwanted space here;

GiveSanityDamage(90 , true);

Could you be more specific with your error? What does it exactly say?

Also this line.

PlayGuiSound("react_past", 1);

I belive it should be like this:

PlayGuiSound("react_pant.snt", 1);
It says
FATAL ERROR : Could not load script file 'custom_stories/Awakening 0.1/,aps/01_basement.hps '! Main (17, 1) : ERR Unexpected token '{'
void UsedKeyOnDoor(string &in asItem, string &in asEntity); <--- this is wrong I belive. Erase ;

{

SetSwingDoorLocked("waterdoorkey, false, true);

PlaySoundAtEntity("", "unlock_door", "waterdoor", 0, false);

RemoveItem("waterdoorkey");

}

Hope it works :)

Prelauncher, you have sharp eyes

(This post was last modified: 04-26-2012, 06:42 PM by TeamSD.)
04-26-2012, 06:36 PM
Find


Messages In This Thread
Unexpected token? - by Manbearpig116 - 04-26-2012, 06:13 PM
RE: Unexpected token? - by TeamSD - 04-26-2012, 06:25 PM
RE: Unexpected token? - by Manbearpig116 - 04-26-2012, 06:32 PM
RE: Unexpected token? - by TeamSD - 04-26-2012, 06:36 PM
RE: Unexpected token? - by Prelauncher - 04-26-2012, 06:37 PM
RE: Unexpected token? - by Manbearpig116 - 04-26-2012, 06:51 PM
RE: Unexpected token? - by Prelauncher - 04-26-2012, 06:54 PM



Users browsing this thread: 1 Guest(s)