Unexpected err { - Printable Version +- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum) +-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html) +--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html) +---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html) +---- Thread: Unexpected err { (/thread-22147.html) |
RE: Unexpected err { - mrjoshy12 - 07-16-2013 (07-16-2013, 11:09 AM)No Author Wrote: The adduseitemcallback script on Lolkey_1 to loldoor_1 doesn't have a void before the "{"i havent really learnt voids yet, i learnt most of it by a vid but now its got very confusing RE: Unexpected err { - PutraenusAlivius - 07-16-2013 (07-16-2013, 11:05 AM)mrjoshy12 Wrote: wow all these comments, i actually forgot to say i started doing this scripting yesterday, Just use the code. RE: Unexpected err { - mrjoshy12 - 07-16-2013 (07-16-2013, 11:20 AM)JustAnotherPlayer Wrote:it didnt work(07-16-2013, 11:05 AM)mrjoshy12 Wrote: wow all these comments, i actually forgot to say i started doing this scripting yesterday, (16, 1) (21, 6) was the problem RE: Unexpected err { - PutraenusAlivius - 07-16-2013 Code: void UsedKeyOnDoor(string &in asItem, string &in asEntity) Both functions have the same name. RE: Unexpected err { - mrjoshy12 - 07-16-2013 (07-16-2013, 11:24 AM)JustAnotherPlayer Wrote:oh, well thanks i'll try it (07-16-2013, 11:24 AM)JustAnotherPlayer Wrote:ok once i used it errors came up so i will stick with ma old one RE: Unexpected err { - No Author - 07-16-2013 The same error again ? RE: Unexpected err { - mrjoshy12 - 07-16-2013 (07-16-2013, 11:38 AM)No Author Wrote: The same error again ?yup, i just dont get it, i only know how to script the one item and nothing else, i need it more simplified oh and i just dont get voids, i found it on videos RE: Unexpected err { - No Author - 07-16-2013 JustAnotherPlayer didn't change the script he gave, just so you know. You used "UseKeyOnDoor" script twice. That caused the error. You need to change it. And do some edit at the void OnStart. And post the changed script and the error you got. RE: Unexpected err { - The chaser - 07-16-2013 Code: //////////////////////////// Does it cost much to simply fix the script? Here you have, this should be ok, without errors. RE: Unexpected err { - No Author - 07-16-2013 (07-16-2013, 11:47 AM)The chaser Wrote: Does it cost much to simply fix the script? Yes with my sucky phone that always stop working every 5 minutes |