[Help]Small question...

05/19/2009 13:48 BlooD-BoY#1
why doesn't this code work? o.O

Code:
if (MyChar.Equips[Pos] != "0" || MyChar.Equips[Pos] != null)
any ideas? i'm trying to make it so if there is no equip on it won't "upgrade" the item....thx.
05/20/2009 03:35 samehvan#2
can u screen shot the error message that appears?
05/20/2009 13:28 BlooD-BoY#3
Quote:
Originally Posted by [GMs] View Post
Why did you use zero? Why not use a boolean statement? Your code says if equipment in position x is NOT 0 and you can't use null.

"The null keyword is a literal that represents a null reference, one that does not refer to any object."
.....i already fixed it....and weird i used the same code....just changed its location....umm....