READ THE RULES: Click here

Follow us on Facebook: https://www.facebook.com/xentax/ :)

max scripting RE2 Remake

Coders and would-be coders alike, this is the place to talk about programming.
Post Reply
User avatar
Crazy Potato
ultra-n00b
Posts: 8
Joined: Mon Mar 26, 2018 4:56 am
Has thanked: 1 time

max scripting RE2 Remake

Post by Crazy Potato » Fri Aug 09, 2019 12:29 am

Image
I'm getting this error after editing a bit to allow more models to be exporting/imported. I'll provide more info if needed, I'd post them now but I don't even know what to post lol
Being new to max scripting can only get you so far before needing help...

User avatar
PredatorCZ
mega-veteran
mega-veteran
Posts: 253
Joined: Mon Apr 21, 2014 8:32 pm
Has thanked: 8 times
Been thanked: 177 times
Contact:

Re: max scripting RE2 Remake

Post by PredatorCZ » Sun Aug 11, 2019 6:02 pm

w1 is not defined, !=0 statement won't protect you from undefined variables (0 != undefined).
You will need to define said variable, or use appropriate expression.

So it should be

Code: Select all

if (w1 != undefined) then maxweight += w1
...

Post Reply