Xplorer4x4 Posted May 6, 2010 Report Share Posted May 6, 2010 Im bout to go insane trying to fix this error!Errors from EM4:http://img594.imageshack.us/img594/9944/error1e.jpghttp://img714.imageshack.us/img714/9263/error2o.jpgScript:http://pastebin.com/gRzX29VDEverything looks dead on, so I cant fathom what this ";" error is about. Quote Link to comment Share on other sites More sharing options...
Maffegozer Posted May 6, 2010 Report Share Posted May 6, 2010 Is OBJ_ENGINE017 actually there? Quote Link to comment Share on other sites More sharing options...
Xplorer4x4 Posted May 6, 2010 Author Report Share Posted May 6, 2010 Define there? As in in the script? In the fire house? In the script it appears on lines 49,461 and 890. It appears/spawns in FS2 as well.New problem though. EM4 doesnt report any errors, but none of the vehichles can return to the FS. It always says theres no space even if there is, except on Engine 17(aka OBJ_ENGINE017), it reports it does not belong in the FS.Heres the newest script:http://pastebin.com/JfYcNSXNEDIT: thanks anyways maff, but I got the script 100% working now! Thanks anyways!EDIT2: Spoke to soon, ALS Engines dont return to FS1 and Engine 17 doesnt enter its bay. It stop outside the middle bay at FS2 where it belongs but will not enter the station. http://pastebin.com/51AgWYEr Quote Link to comment Share on other sites More sharing options...
Maffegozer Posted May 6, 2010 Report Share Posted May 6, 2010 Watching the script right now!-EDIT-Well,The script should work how it is.I don't know why it Doesnt.Sorry. Quote Link to comment Share on other sites More sharing options...
Xplorer4x4 Posted May 6, 2010 Author Report Share Posted May 6, 2010 Thanks anyways, hopefully Hoppah or some one can help me out because this is bashing my head in because I cant see anything wrong at all. Checked the brackets, tried basing it off code for the other engines, tried, well a number of things and just cant get it!So here are my latest alterations in an attempt to fix this before I go insane:http://pastebin.com/sGFzFc7NNow im off to bed Quote Link to comment Share on other sites More sharing options...
soulbody Posted May 6, 2010 Report Share Posted May 6, 2010 is they prototype actually still in the direction where it should be. check this, the message said the file is missing (i think) so check this... mod:Prototypes/Vehicles/02 LA Fire Department/fire_engine17.e4p Quote Link to comment Share on other sites More sharing options...
Xplorer4x4 Posted May 6, 2010 Author Report Share Posted May 6, 2010 The prototype is there in the folder but i think the error is saying its missing a ; symbol on line 462, but there shouldnt be one on 462. Oh and I am back to the very first error now when I try to send units to the FS. Quote Link to comment Share on other sites More sharing options...
Xplorer4x4 Posted May 8, 2010 Author Report Share Posted May 8, 2010 Hoppah,Souldbody, ANYONE?! This is the last piece of script needed to get my sub mod working! 3 days of asking for help and bashing my head against a brick wall trying to get this working! Quote Link to comment Share on other sites More sharing options...
Hoppah Posted May 8, 2010 Report Share Posted May 8, 2010 I found the problem. That script checks the prototype of the object that executes the command. If the prototype matches any of the prototypes it compares to, the script continues. If it doesn't the following hint will be played: "This vehicle doesn't belong in the fire station!". The code of the hint should be the last part of the script as it needs to check all the prototypes before that. The code responsible for your problem is this: { Mission::PlayHint(HINT_NOTVALID); return; }I found the code three times while you need it only once at the end of the script. I removed the wrong parts and uploaded the script.To make it more clear. The script basically does thisif caller matches proto1 then continueelse if caller matches proto2 then continueelse if caller matches proto3 then continueelse if caller matches proto4 then continueelse if caller matches proto5 then continueelse if caller matches proto6 then continueelse play hint (-> means caller doesn't matches any of the 6 protos above)Yours did thisif caller matches proto1 then continueelse if caller matches proto2 then continueelse if caller matches proto3 then continueelse if caller matches proto4 then continueelse play hintelse if caller matches proto5 then continueelse play hintelse if caller matches proto6 then continueelse play hintThat means the proto5 and proto6 parts could not be executed anymore because the code already ended at 'else play hint', so 'else if' after that wouldn't work. That caused your problem. Anyway, the fixed script is in the attachment. I didn't test it.Hoppah Quote Link to comment Share on other sites More sharing options...
Xplorer4x4 Posted May 8, 2010 Author Report Share Posted May 8, 2010 lol wow, here I was thinking it had to be a bracket or something completely different! Thank you soooo much Hoppah! Quote Link to comment Share on other sites More sharing options...