Quote:
Originally Posted by Skyld
Will temp.newvar.t not == 0 anyway, since it is an "uncreated" variable?
|
Yes, however, there is a difference when I want... Well, put it in context.
I want to make a system in which options are set.
PHP Code:
setting.hasStaffBoots=true
However, if I want to remove it, I want to apply another file to an account...
PHP Code:
setting.hasStaffBoots=false
The way to know on such ambiguous terms is through
PHP Code:
for ( i: temp.var.setting.getdynamicvarnames() )
player.setting.(@ i ) = temp.var.setting.(@ i );
Because the variable is equal to false, it vanishes completely!
By cause, however, when I do the getdynamicvarnames(), it doesn't interpret the hasStaffBoots=false, and therefore, it doesn't set it to player.setting.(@ i )... Thereby, the old value remains true: the player.setting.(@ i ) doesn't get changed because the hasStaffBoots isn't part of the variable anymore.
Ultimately, there IS a difference, even though the shorthand of setting.hasStaffBoots is still equal to 0.