Cranky Old Man
Posting Freak
Posts: 986
Threads: 20
Joined: Apr 2012
Reputation:
38
|
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.
Actually, no: You just wrote the wrong kind of bracket after OnStart(): { should be }
(This post was last modified: 05-02-2012, 02:48 AM by Cranky Old Man.)
|
|
05-02-2012, 02:47 AM |
|