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
Expected Identifier Error
Cranky Old Man Offline
Posting Freak

Posts: 986
Threads: 20
Joined: Apr 2012
Reputation: 38
#2
RE: Expected Identifier Error

(05-02-2012, 02:18 AM)bkrstirregular Wrote: I think I'll be making a lot of these tonight..I'm getting so frustrated with coding that I want to pull my hair out ;_;

//AddUseItemCallback
AddUseItemCallback("", "Key_1", "firstdoor1", "UsedKeyOnDoor", true);
{
void UsedKeyOnDoor(string &in asItem, string &in asEntity){
SetSwingDoorLocked("firstdoor1", false, true);
PlaySoundAtEntity("", "unlock_door", "firstdoor1", 0, false);
RemoveItem("Key_1");
}


Can someone tell me what I've done wrong here?
You hid a { bracket at the end of a line, and that made you forgot to write a } bracket. Smile

Actually, no: You just wrote the wrong kind of bracket after OnStart(): { should be }


Noob scripting tutorial: From Noob to Pro

(This post was last modified: 05-02-2012, 02:48 AM by Cranky Old Man.)
05-02-2012, 02:47 AM
Find


Messages In This Thread
Expected Identifier Error - by bkrstirregular - 05-02-2012, 02:18 AM
RE: Expected Identifier Error - by Cranky Old Man - 05-02-2012, 02:47 AM
RE: Expected Identifier Error - by bkrstirregular - 05-02-2012, 03:03 AM
RE: Expected Identifier Error - by Cranky Old Man - 05-02-2012, 03:08 AM
RE: Expected Identifier Error - by bkrstirregular - 05-02-2012, 03:11 AM
RE: Expected Identifier Error - by Cranky Old Man - 05-02-2012, 03:42 AM
RE: Expected Identifier Error - by bkrstirregular - 05-02-2012, 03:46 AM
RE: Expected Identifier Error - by Cranky Old Man - 05-02-2012, 03:51 AM
RE: Expected Identifier Error - by bkrstirregular - 05-02-2012, 03:55 AM
RE: Expected Identifier Error - by Cranky Old Man - 05-02-2012, 04:04 AM
RE: Expected Identifier Error - by bkrstirregular - 05-02-2012, 04:06 AM
RE: Expected Identifier Error - by Cranky Old Man - 05-02-2012, 05:01 AM
RE: Expected Identifier Error - by bkrstirregular - 05-02-2012, 05:16 AM
RE: Expected Identifier Error - by Cranky Old Man - 05-02-2012, 05:50 AM
RE: Expected Identifier Error - by bkrstirregular - 05-02-2012, 05:56 AM



Users browsing this thread: 1 Guest(s)