Offtopic: Into Commodore 64 (6502) coding, pixeling or music?
Xentax is looking for new members for the C64 activities!
Just drop us a message at email@example.com and join the Scene Team!
Forum rules: Click here
Coders and would-be coders alike, this is the place to talk about programming.
- Posts: 8
- Joined: Mon Mar 26, 2018 4:56 am
- Has thanked: 1 time
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...
- Posts: 259
- Joined: Mon Apr 21, 2014 8:32 pm
- Has thanked: 8 times
- Been thanked: 185 times
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