nixxx60 again my amnesia custom story not in the custom storys in amnesia is fixed but when i load it it says
FATAL ERROR Could not load script file 'custom_stories/The Cursed/Custom_stories/The Cursed/maps/tutorial.hps!
Main (12,14 : ERR :'studydoorkey_1' is not declared
then my amnesia closes??
also this is wat my hps file says inside
////////////////////////////
// Run when entering map
void OnEnter()
{
AddUseItemCallback("", "studydoorkey_1", "studydoor", "UsedKeyOnDoor", true);
}
void UsedKeyOnDoor(string &in asItemA, string &in asItemB)
{
SetSwingDoorLocked("studydoor", false, true);
PlaySoundAtEntity("", "unlock_door", "studydoor", 0, false);
RemoveItem(studydoorkey_1);
}
////////////////////////////
// Run when leaving map
void OnLeave()
{
}
On the
PHP Code:
RemoveItem(studydoorkey_1);
part of the script, studydoorkey_1 is not declared. It should be
PHP Code:
RemoveItem("studydoorkey_1");
(02-06-2013, 10:20 AM)JustAnotherPlayer Wrote: [ -> ]On the
PHP Code:
RemoveItem(studydoorkey_1);
part of the script, studydoorkey_1 is not declared. It should be
PHP Code:
RemoveItem("studydoorkey_1");]
i did that then it said same thing but not studykey instead at Main (12, 14
its (12,30) : ERR : Expected expression value
(02-06-2013, 10:23 AM)nixxx60 Wrote: [ -> ] (02-06-2013, 10:20 AM)JustAnotherPlayer Wrote: [ -> ]On the
PHP Code:
RemoveItem(studydoorkey_1);
part of the script, studydoorkey_1 is not declared. It should be
PHP Code:
RemoveItem("studydoorkey_1");]
i did that then it said same thing but not studykey instead at Main (12, 14
its (12,30) : ERR : Expected expression value
oh wait i forgot The " in studydoorkey_1):]
(02-06-2013, 10:23 AM)nixxx60 Wrote: [ -> ] (02-06-2013, 10:20 AM)JustAnotherPlayer Wrote: [ -> ]On the
PHP Code:
RemoveItem(studydoorkey_1);
part of the script, studydoorkey_1 is not declared. It should be
PHP Code:
RemoveItem("studydoorkey_1");]
i did that then it said same thing but not studykey instead at Main (12, 14
its (12,30) : ERR : Expected expression value
(02-06-2013, 10:23 AM)nixxx60 Wrote: [ -> ] (02-06-2013, 10:20 AM)JustAnotherPlayer Wrote: [ -> ]On the
PHP Code:
RemoveItem(studydoorkey_1);
part of the script, studydoorkey_1 is not declared. It should be
PHP Code:
RemoveItem("studydoorkey_1");]
i did that then it said same thing but not studykey instead at Main (12, 14
its (12,30) : ERR : Expected expression value
oh wait i forgot The " in studydoorkey_1):]
It's;
Made a mistake.
EDIT: I just realized : Your thread was supposed to be in
Amnesia - The Dark Descent/Custom stories, TC's & Mods/Technical Support.
(02-06-2013, 10:20 AM)JustAnotherPlayer Wrote: [ -> ]On the
PHP Code:
RemoveItem(studydoorkey_1);
part of the script, studydoorkey_1 is not declared. It should be
PHP Code:
RemoveItem("studydoorkey_1");
I added comma hings in studydoorkey_!
and the ] and now it says at end of error
Main (12,32) ERR: expected expression value
??
i made it ("studydoorkey_1");]
but still not workin
(02-06-2013, 10:29 AM)nixxx60 Wrote: [ -> ]i made it ("studydoorkey_1");]
but still not workin
DID YOU SEE MY PREVIOUS POSTS?!
ITS:
PHP Code:
RemoveItem("studydoorkey_1");
NOT:
PHP Code:
RemoveItem("studydoorkey_1");]
I didn't mean to upset you or anything, but you don't pay attention to previous posts.
EDIT: Yay! 202 Posts!
(02-06-2013, 10:33 AM)nixxx60 Wrote: [ -> ]ok i fixed it thx
what about my reputation?
EDIT: And oh dude, PM me a link to download it for me to test it out, don't release it yet.