View Full Version : Basic MAKI Question
2nd December 2002, 20:49
are not all of these equal?
int t = picnumber + 1;
picnumber = t;
picnumber = picnumber + 1;
don't you end up adding 1 to picnumber?
i thought they were, but had to end up using the first one to get my script to run. any ideas why?
2nd December 2002, 21:09
If picnumber is also an int they should be the same.... :: scratches head ::
I don't know how MAKI handles float-to-int conversions.
2nd December 2002, 21:13
sorry, picnumber is an int. no conversions.
2nd December 2002, 21:25
but had to end up using the first one to get my script to run. any ideas why?
What result did you get with the other two methods? Did the script even compile, and if so, what kind of runtime error did you recieve? Or if it didn't produce a direct error message, what unexpected result did you get to know that only the first method worked?
I'm a curious person ;)
2nd December 2002, 23:47
all of them compiled fine, but i got assertion errors dealing with tlist.h with the last two. i kept removing things until the error was gone, determined it was picnumber++ (what i orignally had), so i tried picnumber=picnumber+1, same assertion error. until finally in a stroke of genius (dispair?) i broke it up into the first one. i kinda think it might have something to do with the fact that sometimes picnumber is zero or negative. but i don't know why that would matter, picnumber is never over 20 or under -5. anyway i was just curious if someone else might have an idea?
3rd December 2002, 00:13
Check this (http://forums.winamp.com/showthread.php?s=&threadid=106900) thread.
I think you're experiencing the same problems like me...
Please give me feedback on Bugzilla if this is your problem.
This is a major bug and it should be fixed as soon as possible.
3rd December 2002, 00:19
no, i assign it a value from another int.
vBulletin® v3.8.6, Copyright ©2000-2013, Jelsoft Enterprises Ltd.