Call of Duty 5: World at War => Help Desk => Topic started by: brumaghin on January 20, 2014, 02:36:34 am
Title: bad syntax HELP!!!!
Post by: brumaghin on January 20, 2014, 02:36:34 am
when i run my map it says bad syntax maps/_zombiemode_weapons.gsc line 915 if( isDefined( endon_notify ) )
Any HELP would be appreciated!!!!!
Title: Re: bad syntax HELP!!!!
Post by: blackbird431 on January 20, 2014, 03:22:56 am
Well, from what I see, it is the endon_notify. If it is a function you are using put endon_notify(), if it isn't make sure it is equal to a value above the if statement. Like this. Function - if(isDefined(endon_notify())) Value - endon_notify = Value; if(isDefined(endon_notify)) Otherwise if it isn't one of those reasons, then maybe because it isn't a function or already made statement in waw. If you need help with doing what you want let me know and I can try to help.
Title: Re: bad syntax HELP!!!!
Post by: brumaghin on January 21, 2014, 04:42:35 pm
Title: Re: bad syntax HELP!!!!
Post by: blackbird431 on January 21, 2014, 09:12:14 pm
If you have tried deleting the line if you could throw the code in pastebin, and I can check it over, and if I don't see an error from there, then maybe, you may wanna try a new _zombiemode_weapons.gsc, or hopefully see if someone else can help if you dont want a new _zombiemode_weapons.gsc, but try to put the code in a pastebin and let me see if I can see anything wrong first.
Title: Re: bad syntax HELP!!!!
Post by: ZCTxCHAOSx on January 21, 2014, 11:29:07 pm
According to what I see you have an extra open bracket "{" in your script. However to be sure the exact error, before launching your map type:
developer 1 developer_script 1 devmap yourmapname
Unless you have already done so, this will more accurately pinipoint your problem. Most times its not even in the script it shows at first, but a typo or extra bracket elsewhere.
Title: Re: bad syntax HELP!!!!
Post by: brumaghin on January 21, 2014, 11:31:00 pm
Title: Re: bad syntax HELP!!!!
Post by: blackbird431 on January 21, 2014, 11:40:06 pm
Okay, I see what you did wrong. Edit: Sorry I keep making a mistake, got it this time hopefully Change line 912 to 938 with this piece of code 912 being a { hopefully and line 938 being a } hopefully
Title: Re: bad syntax HELP!!!!
Post by: brumaghin on January 22, 2014, 12:07:39 am
it show the same error i originally had. and its on line 915 still any reason for that line always messing up?
Title: Re: bad syntax HELP!!!!
Post by: blackbird431 on January 22, 2014, 12:19:42 am
Try what ZCTxChaosx said, and if you have tried then I don't know, there shouldn't be an error on that line if you did as I said correctly. But like ZCT said it could be elsewhere, but causing it on that line.
Title: Re: bad syntax HELP!!!!
Post by: brumaghin on January 22, 2014, 12:24:11 am
well the mod tools has a backup _zombiemode_weapons.gsc should i delete the other one and try it
and before i even did this i deleted a line in _zombiemode_utility.gsc but i put it back would that affect anything
Title: Re: bad syntax HELP!!!!
Post by: blackbird431 on January 22, 2014, 12:27:03 am
Yah, try the back up, but no to deleting a line from _zombiemode_utility, based on what I can think of would not cause an error like that, but testing a new _zombiemode_weapons and that not working would be the _zombiemode_utility, but try the back up before you do anything else.
Title: Re: bad syntax HELP!!!!
Post by: brumaghin on January 22, 2014, 12:36:08 am